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,185 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import { AnalysisMode } from '@costy-plus/utils';
3
+ import { ZRenderType, ElementEvent, Polyline, Text, Group } from 'zrender';
4
+ export default class Methods extends Vue {
5
+ protected className: string;
6
+ protected width: number;
7
+ protected height: number;
8
+ protected gridConfig: MXGridConfig;
9
+ /** 走纸速度 */
10
+ protected speedValue: number;
11
+ /** 增益 */
12
+ protected sens: number;
13
+ /** 数据两点之间的距离(导联) */
14
+ protected step: number;
15
+ protected sampleRate: number;
16
+ protected sensitivity: number;
17
+ /** 复合波数据点位 */
18
+ protected complexData: number[][];
19
+ /** 选中心搏数据点位 */
20
+ protected normalData: number[][];
21
+ /** 是否显示当前组件 */
22
+ protected isShowEnlargeWave: boolean;
23
+ /** 是否展示同步分析值 */
24
+ protected isShowSyncAnalyseValue: boolean;
25
+ protected leadHeadConfig: LeadHeadConfig;
26
+ protected leadConfig: MXLeadConfig;
27
+ /** 放大倍数 */
28
+ protected magnification: number;
29
+ /** 波形导联名称数据 */
30
+ protected leadNameList: number[];
31
+ /** 外部 当前选中导联 */
32
+ protected activeLeadIdx: number;
33
+ /** 外部 当前选中的分析值相关 */
34
+ protected activeLeadAnalyseValue: AnalyseValue & {
35
+ BeatCount: number;
36
+ } | null;
37
+ /** 外部 所有 分析值 */
38
+ protected analyseValue: AnalyseValue[];
39
+ /** 当前组件类型 */
40
+ protected typeClass: 'ECG' | 'HFECG';
41
+ /** 导联颜色 */
42
+ protected leadColors: string[];
43
+ /** 双击放大波形 是什么模式 */
44
+ protected enlargeWaveMode: AnalysisMode;
45
+ /** 心电相关配置 */
46
+ protected conventionalECGConfig: MXConventionalECGConfig | null;
47
+ /** 所有增益配置 */
48
+ protected gains: {
49
+ name: string;
50
+ value: number;
51
+ }[];
52
+ /** 所有走纸速度 */
53
+ protected speeds: {
54
+ name: string;
55
+ value: number;
56
+ }[];
57
+ protected AnalysisMode: typeof AnalysisMode;
58
+ protected AnalyseParameterTable: {
59
+ key: string;
60
+ name: string;
61
+ unit: string;
62
+ }[];
63
+ protected sceneIns: Readonly<ZRenderType | null>;
64
+ protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
65
+ protected leadNameIns: Readonly<Text | null>;
66
+ protected sensAndSpeedIns: Readonly<Text | null>;
67
+ protected waveFromIns: Readonly<Polyline | null>;
68
+ protected waveFromGroup: Readonly<Group | null>;
69
+ protected measureGroup: Readonly<Group | null>;
70
+ protected leadHeadIns: Readonly<Polyline | null>;
71
+ protected M1: Readonly<Group | null>;
72
+ protected M2: Readonly<Group | null>;
73
+ protected P1: Readonly<Group | null>;
74
+ protected P2: Readonly<Group | null>;
75
+ protected R1: Readonly<Group | null>;
76
+ protected R2: Readonly<Group | null>;
77
+ protected T1: Readonly<Group | null>;
78
+ protected T2: Readonly<Group | null>;
79
+ protected bottomSafeAreaH: number;
80
+ protected drawWaveFromX: number;
81
+ protected dbClickTime: number;
82
+ protected startPos: number;
83
+ protected currentGainIdx: number;
84
+ protected currentSpeedIdx: number;
85
+ protected currentLeadAnalyseValueIdx: number;
86
+ protected longdata: Readonly<number[] | undefined>;
87
+ /** 记录下修改过后的分析值 */
88
+ protected modifyAnalysed: Readonly<Map<number, AnalyseValue> | null>;
89
+ protected measureLineMoveInfo: Readonly<{
90
+ x: number;
91
+ findIdx: number;
92
+ name: string;
93
+ offLeftX: number;
94
+ }>;
95
+ /** 除 M1 M2 以外的其他测量线,按照 位置进行排序 */
96
+ protected measureLineList: readonly {
97
+ ins: Group;
98
+ x: number;
99
+ }[];
100
+ /** 导联波长 px */
101
+ protected waveFromLenPX: number;
102
+ /** 导联名称数组 */
103
+ protected leadNames: {
104
+ name: string;
105
+ val: number;
106
+ }[];
107
+ /** 当前选中的导联 */
108
+ protected leadNameActive: {
109
+ name: string;
110
+ val: number;
111
+ };
112
+ /** 是否同步分析值 */
113
+ protected isSyncAnalyseValue: boolean;
114
+ /** 当前增益 */
115
+ protected currentSens: number;
116
+ /** 当前 走纸速度 */
117
+ protected currentSpeedValue: number;
118
+ /** 当前 数据两点之间的距离(导联) */
119
+ protected currentStep: number;
120
+ /** 当前 心搏分析值 */
121
+ protected currentLeadAnalyseValue: AnalyseValue & {
122
+ BeatCount: number;
123
+ } | null;
124
+ /** 复合波 分析值 */
125
+ protected complexAnalysisvalue: Readonly<AnalyseValue | null>;
126
+ /** 渲染参数列表 */
127
+ protected enlargeAnalysisData: EnlargeAnalysisData | null;
128
+ /** 事件差、幅值差 */
129
+ protected difference: {
130
+ timeDifference: number;
131
+ amplitudeDifference: string;
132
+ };
133
+ protected watchActiveLeadIdx(val: number): void;
134
+ protected watchLeadNameList(val: number[]): void;
135
+ protected get containerWH(): {
136
+ width: number;
137
+ height: number;
138
+ };
139
+ protected destroyed(): void;
140
+ protected created(): void;
141
+ protected processEnlargeAnalysisData(): void;
142
+ /** 导联选择事件 */
143
+ protected selectLeadName(params: {
144
+ name: string;
145
+ val: number;
146
+ }): void;
147
+ /** 创建 导联头 图形 */
148
+ protected createLeadHead(): void;
149
+ /** 创建 导联名称 */
150
+ protected createLeadName(): void;
151
+ protected createSensAndSpeed(): void;
152
+ /** 创建导联图形 */
153
+ protected createWaveFrom(): void;
154
+ protected drawWaveFrom(): void;
155
+ protected drawAllLead(): void;
156
+ /** 画单个 心搏图形 */
157
+ protected drawSingleLead(): void;
158
+ protected getWaveFrom(beatID?: number, leadIdx?: number): {
159
+ originData: number[];
160
+ beatData: number[];
161
+ startPos: number;
162
+ };
163
+ /** 画测量线,在绘制波形后调用 */
164
+ protected drawMeasureLine(): void;
165
+ protected createMeasureLineGroup(name: string, x1: number, MStyle: Record<string, any>): Group;
166
+ /** 测量线拖拽 */
167
+ protected measureLineDrag(e: ElementEvent): void;
168
+ protected calcMeasureLineMove(e: ElementEvent): void;
169
+ protected calcMeasureLineOffx(): void;
170
+ /** 处理非电轴分析值 */
171
+ protected processEnlargeAnalysis(): void;
172
+ /** 计算 电轴分析值 */
173
+ protected electricAxisAnalyse(): void;
174
+ /** 计算ms */
175
+ protected calculatedValue(): void;
176
+ /** 切换 增益 */
177
+ protected toggleGain(val: boolean): void;
178
+ /** 切换 走纸 */
179
+ protected toggleSpeeds(val: boolean): void;
180
+ /** 切换 心博 */
181
+ protected toggleBeaadId(val: boolean): void;
182
+ /** 重绘 */
183
+ protected toggleRender(): void;
184
+ protected mainBoxDbClick(): void;
185
+ }
@@ -0,0 +1 @@
1
+ "use strict";var M=Object.defineProperty,D=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var S=(e,t,a)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,c=(e,t)=>{for(var a in t||(t={}))R.call(t,a)&&S(e,a,t[a]);if(x)for(var a of x(t))w.call(t,a)&&S(e,a,t[a]);return e},m=(e,t)=>D(e,F(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),b=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const o=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),B=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),n=require("@costy-plus/utils"),y=require("zrender"),C=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Q=C(T);var W=Object.defineProperty,G=Object.getOwnPropertyDescriptor,r=(e,t,a,s)=>{for(var i=s>1?void 0:s?G(t,a):t,l=e.length-1,h;l>=0;l--)(h=e[l])&&(i=(s?h(t,a,i):h(i))||i);return s&&i&&W(t,a,i),i};exports.default=class extends Q.default{constructor(){super(...arguments),this.AnalysisMode=n.AnalysisMode,this.AnalyseParameterTable=n.AnalyseParameterTable,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({x:0,findIdx:0,name:"",offLeftX:0}),this.measureLineList=Object.freeze([]),this.waveFromLenPX=Object.freeze(0),this.leadNames=[],this.leadNameActive={name:"",val:-2},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={timeDifference:0,amplitudeDifference:""}}watchActiveLeadIdx(e){var t;this.leadNameActive=this.leadNames.find(a=>a.val===e)||{name:"",val:-2},(t=this.leadNameIns)==null||t.attr({style:{text:this.leadNameActive.name}})}watchLeadNameList(e){this.leadNames=e.map(t=>{var a;return this.activeLeadIdx===t&&((a=this.leadNameIns)==null||a.attr({style:{text:n.LeadNameTexts[t]}}),this.leadNameActive={name:n.LeadNameTexts[t],val:t}),{name:n.LeadNameTexts[t],val:t}}).concat({name:"ALL",val:-1})}get containerWH(){return{width:this.width-230,height:this.height-40-50}}destroyed(){var e,t,a,s,i,l,h,d,u,f,p;(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(),(h=this.R1)==null||h.removeAll(),(d=this.R2)==null||d.removeAll(),(u=this.T1)==null||u.removeAll(),(f=this.T2)==null||f.removeAll();try{(p=this.sceneIns)==null||p.dispose()}catch(A){}}created(){this.modifyAnalysed=new Map,this.measureLineList=[],this.measureLineMoveInfo={x:0,findIdx:0,name:"",offLeftX:0},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=>{var t;return e.BeatID===((t=this.activeLeadAnalyseValue)==null?void 0:t.BeatID)}),this.currentSens=this.sens*this.magnification,this.currentSpeedValue=this.speedValue,this.currentStep=this.step*this.magnification,this.currentLeadAnalyseValue=y.util.clone(this.activeLeadAnalyseValue),this.complexAnalysisvalue=y.util.clone(this.analyseValue[0])||null,this.processEnlargeAnalysisData()}processEnlargeAnalysisData(){var e,t,a,s,i;this.enlargeAnalysisData=m(c({},((e=this.currentLeadAnalyseValue)==null?void 0:e.AnabyBeat)||{}),{AtrialRate:((a=(t=this.complexAnalysisvalue)==null?void 0:t.AnabyBeat)==null?void 0:a.AtrialRate)||0,VentricularRate:((i=(s=this.complexAnalysisvalue)==null?void 0:s.AnabyBeat)==null?void 0:i.VentricularRate)||0,QTc:""})}selectLeadName(e){var t;this.leadNameActive=e,(t=this.leadNameIns)==null||t.attr({style:{text:e.name}}),this.drawWaveFrom()}createLeadHead(){var s,i;const t=this.containerWH.height/2,a=this.leadHeadConfig.leadHedeWidth/4;this.leadHeadIns&&((s=this.sceneIns)==null||s.remove(this.leadHeadIns)),this.leadHeadIns=new y.Polyline({cursor:"",shape:{points:[[0+0,0+t],[a+0,0+t],[a+0,-this.currentSens+t],[3*a+0,-this.currentSens+t],[3*a+0,0+t],[4*a+0,0+t]]},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}}),(i=this.sceneIns)==null||i.add(this.leadHeadIns)}createLeadName(){var e;this.leadNameIns=new y.Text({style:{x:this.leadHeadConfig.leadHedeWidth,y:this.containerWH.height/2-this.leadConfig.fontSize,text:this.leadNameActive.name,fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily}}),(e=this.sceneIns)==null||e.add(this.leadNameIns)}createSensAndSpeed(){var e,t;this.sensAndSpeedIns&&((e=this.sceneIns)==null||e.remove(this.sensAndSpeedIns)),this.sensAndSpeedIns=new y.Text({cursor:"",style:{x:this.leadHeadConfig.leadHedeWidth,y:this.containerWH.height-50,text:`${this.currentSens/this.gridConfig.cellMg}mm/mV ${this.currentSpeedValue}mm/s`,fontSize:12,fill:"#FF0080",fontFamily:this.leadConfig.fontFamily}}),(t=this.sceneIns)==null||t.add(this.sensAndSpeedIns)}createWaveFrom(){var e;this.waveFromIns=new y.Polyline({cursor:"",shape:{points:[]},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}}),(e=this.sceneIns)==null||e.add(this.waveFromIns)}drawWaveFrom(){this.leadNameActive.val===-1?this.drawAllLead():this.drawSingleLead(),this.calculatedValue(),this.electricAxisAnalyse(),this.processEnlargeAnalysis()}drawAllLead(){var t,a,s;(t=this.waveFromIns)==null||t.hide(),this.waveFromGroup?this.waveFromGroup.removeAll():this.waveFromGroup=new y.Group({name:"waveFromGroup"}),this.longdata=void 0;const e=this.containerWH.height/2;for(let i=0;i<this.leadNames.length-1;i++){const{beatData:l,startPos:h}=this.getWaveFrom(((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,this.leadNames[i].val);this.startPos=h,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 y.Polyline({cursor:"",name:`${i}`,shape:{points:l.map((d,u)=>[u*this.currentStep+this.drawWaveFromX,-d+e])},style:{stroke:this.leadColors[i]||this.leadColors[i%this.leadColors.length],lineWidth:this.leadConfig.lineWidth}}))}(s=this.sceneIns)==null||s.add(this.waveFromGroup)}drawSingleLead(){var i,l,h;this.waveFromGroup&&((i=this.sceneIns)==null||i.remove(this.waveFromGroup));const{beatData:e,startPos:t,originData:a}=this.getWaveFrom();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;const s=this.containerWH.height/2;(l=this.waveFromIns)==null||l.attr({shape:{points:e.map((d,u)=>[u*this.currentStep+this.drawWaveFromX,-d+s])}}),(h=this.waveFromIns)==null||h.show()}getWaveFrom(e,t){var a;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"){const{beatData:s,startPos:i}=n.getLeadpoint({ComplexData:this.complexData,Data:this.normalData,AnalyseValue:this.analyseValue,BeatID:e,leadIdx:t,SampleRate:this.sampleRate});return{originData:s,beatData:s.map(l=>n.getActualY(this.sensitivity,l,this.currentSens)),startPos:i}}return{originData:[],beatData:[],startPos:-1}}drawMeasureLine(){var a,s,i,l,h,d,u,f,p,A,L,g,v,P;this.measureGroup?((a=this.sceneIns)==null||a.remove(this.measureGroup),this.measureGroup.removeAll()):this.measureGroup=new y.Group({name:"measureGroup"});const e=n.calcDistance(this.currentSpeedValue,this.gridConfig.cellMg,this.magnification),t={stroke:"#FF09FF",lineWidth:1.5};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("P1",((((i=(s=this.currentLeadAnalyseValue)==null?void 0:s.KeyPosByBeat)==null?void 0:i.Pstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.P2=this.createMeasureLineGroup("P2",((((h=(l=this.currentLeadAnalyseValue)==null?void 0:l.KeyPosByBeat)==null?void 0:h.Pend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.R1=this.createMeasureLineGroup("R1",((((u=(d=this.currentLeadAnalyseValue)==null?void 0:d.KeyPosByBeat)==null?void 0:u.QRSstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.R2=this.createMeasureLineGroup("R2",((((p=(f=this.currentLeadAnalyseValue)==null?void 0:f.KeyPosByBeat)==null?void 0:p.QRSend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.T1=this.createMeasureLineGroup("T1",((((L=(A=this.currentLeadAnalyseValue)==null?void 0:A.KeyPosByBeat)==null?void 0:L.Tstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.T2=this.createMeasureLineGroup("T2",((((v=(g=this.currentLeadAnalyseValue)==null?void 0:g.KeyPosByBeat)==null?void 0:v.Tend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),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),(P=this.sceneIns)==null||P.add(this.measureGroup)}createMeasureLineGroup(e,t,a){const s=new y.Group({name:e,draggable:"horizontal",ondrag:this.measureLineDrag}),i=this.containerWH.height-this.bottomSafeAreaH;return s.add(new y.Line({cursor:"w-resize",name:`Line_${e}`,shape:{x1:t,y1:0,x2:t,y2:i},style:a})),s.add(new y.Circle({name:"Circle",x:t,y:i,shape:{r:6},style:{fill:"#ccc"}})),s.add(new y.Text({cursor:"",name:"Text",style:{x:t-7,y:i+12+10,text:e,fontSize:12,fill:"#000",fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1"}})),e!=="M1"&&e!=="M2"&&(this.measureLineList=[...this.measureLineList,{ins:s,x:t}].sort((l,h)=>l.x-h.x)),s}measureLineDrag(e){e.target.name==="M1"||e.target.name==="M2"?this.calculatedValue():this.calcMeasureLineMove(e)}calcMeasureLineMove(e){if(e.target.name!==this.measureLineMoveInfo.name){const a=this.measureLineList.findIndex(s=>s.ins.name===e.target.name);this.measureLineMoveInfo.findIdx=a,this.measureLineMoveInfo.name=e.target.name}if(this.measureLineMoveInfo.findIdx===-1)return;let t=0;if(this.calcMeasureLineOffx(),this.measureLineMoveInfo.findIdx===0){const a=this.measureLineList[this.measureLineMoveInfo.findIdx+1];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){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}else if(this.measureLineMoveInfo.findIdx===this.measureLineList.length-1){const a=this.measureLineList[this.measureLineMoveInfo.findIdx-1];if(!a)return;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){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}else{const a=this.measureLineList[this.measureLineMoveInfo.findIdx+1],s=this.measureLineList[this.measureLineMoveInfo.findIdx-1];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){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}this.measureLineMoveInfo.x=e.target.x}calcMeasureLineOffx(){var t,a,s;const e=Math.round((this.measureLineMoveInfo.offLeftX-this.drawWaveFromX)/this.currentStep)+this.startPos;switch(this.measureLineMoveInfo.name){case"P1":this.currentLeadAnalyseValue.KeyPosByBeat.Pstart=e;break;case"P2":this.currentLeadAnalyseValue.KeyPosByBeat.Pend=e;break;case"R1":this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart=e;break;case"R2":this.currentLeadAnalyseValue.KeyPosByBeat.QRSend=e;break;case"T1":this.currentLeadAnalyseValue.KeyPosByBeat.Tstart=e;break;case"T2":this.currentLeadAnalyseValue.KeyPosByBeat.Tend=e;break}if(this.electricAxisAnalyse(),this.processEnlargeAnalysis(),this.isShowSyncAnalyseValue){const i=c({},((t=this.currentLeadAnalyseValue)==null?void 0:t.AnabyBeat)||{});for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&(i[l]=this.enlargeAnalysisData[l]);this.modifyAnalysed.set(((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,m(c({},this.currentLeadAnalyseValue),{AnabyBeat:i,BeatID:((s=this.currentLeadAnalyseValue)==null?void 0:s.BeatID)||0}))}}processEnlargeAnalysis(){var t,a,s,i,l,h;const e={start_pos:this.startPos,Sensitivity:this.sensitivity,SampleRate:this.sampleRate,longdata:this.longdata};if((this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="R1")&&(this.enlargeAnalysisData.PR=Math.round(n.calcPRInterval(this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,this.sampleRate))),(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2")&&(this.enlargeAnalysisData.Pd=Math.round(n.calcPD(this.currentLeadAnalyseValue.KeyPosByBeat.Pend,this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,this.sampleRate))),(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2")&&(this.enlargeAnalysisData.QRSd=Math.round(n.calcQRSD(this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.sampleRate))),this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="T2"){const{QT:d,QTC:u}=n.calcQTAndQTCAndQTD(this.currentLeadAnalyseValue.KeyPosByBeat.Tend,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.analyseValue,+(((a=(t=this.conventionalECGConfig)==null?void 0:t.ecgReviewSetting)==null?void 0:a.QTd_algorithm)||1),((s=this.currentLeadAnalyseValue)==null?void 0:s.BeatID)||0,this.sampleRate);this.enlargeAnalysisData.QT=Math.round(d),this.enlargeAnalysisData.QTc=Math.round(u||(Array.isArray(this.enlargeAnalysisData.QTc)?this.enlargeAnalysisData.QTc[0]:this.enlargeAnalysisData.QTc))}if(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="T1"||this.measureLineMoveInfo.name==="T2"){this.enlargeAnalysisData.Td=Math.round(n.caclTD(this.currentLeadAnalyseValue.KeyPosByBeat.Tend,this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,this.sampleRate));const{TA:d}=n.calcTA(m(c({},e),{Tstart:this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,Tend:this.currentLeadAnalyseValue.KeyPosByBeat.Tend,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,TPpeak:this.currentLeadAnalyseValue.KeyPosByBeat.TPpeak}));this.enlargeAnalysisData.TtypeA=n.toFixedFun(d||0,2)}if(this.enlargeAnalysisData.Ptype=n.calcPstate(m(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend,data:this.longdata}))||"",this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2"){const{PA:d}=n.calcPA(m(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend,PPpeak:this.currentLeadAnalyseValue.KeyPosByBeat.PPpeak}));this.enlargeAnalysisData.PtypeA=n.toFixedFun(d||0,2)}if(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2"){const{qrs_morph_type:d,QA:u,QD:f,RA:p,RD:A,SD:L,RPD:g,SA:v,RPA:P}=n.calcQRS(m(c({},e),{QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend}));this.enlargeAnalysisData.QRStype=d||"",this.enlargeAnalysisData.QtypeA=n.toFixedFun(u||0,2),this.enlargeAnalysisData.QD=Math.round(f||0),this.enlargeAnalysisData.RtypeA=n.toFixedFun(p||0,2),this.enlargeAnalysisData.StypeA=n.toFixedFun(v||0,2),this.enlargeAnalysisData.RPA=n.toFixedFun(P||0,2),this.enlargeAnalysisData.RD=n.toFixedFun(A||0,2),this.enlargeAnalysisData.SD=n.toFixedFun(L||0,2),this.enlargeAnalysisData.RPD=n.toFixedFun(g||0,2);const I=n.calcSTJA(e.start_pos,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,e.Sensitivity,e.longdata);this.enlargeAnalysisData.STJtypeA=n.toFixedFun(I||0,2),this.enlargeAnalysisData.STstate=n.clacST(I||0,e.longdata)||"";const V=n.calcIaddIIaddIII(m(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((i=this.currentLeadAnalyseValue)==null?void 0:i.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}));this.enlargeAnalysisData.IandIIandIII=n.toFixedFun(V,2),this.enlargeAnalysisData.RV5Amp=n.toFixedFun(n.calcRv5(m(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((l=this.currentLeadAnalyseValue)==null?void 0:l.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}))||0,2)+"",this.enlargeAnalysisData.RV5Amp=n.toFixedFun(n.calcSv1(m(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((h=this.currentLeadAnalyseValue)==null?void 0:h.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}))||0,2)+""}}electricAxisAnalyse(){var a;const e={ComplexData:this.complexData,Data:this.normalData,BeatID:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,AnalyseValue:this.analyseValue,SampleRate:this.sampleRate,Sensitivity:this.sensitivity,leadNameList:this.leadNameList,start_pos:this.startPos};if(this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2"){this.enlargeAnalysisData.PAxis=n.calcPelectricAxis(m(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend}));return}const t=()=>{let s=Math.abs(this.enlargeAnalysisData.QRSAxis-this.enlargeAnalysisData.TAxis);s>180&&(s=360-s),this.currentLeadAnalyseValue.AnabyBeat.QRS_T=s};if(this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2"){this.enlargeAnalysisData.QRSAxis=n.calcQRSelectricAxis(m(c({},e),{QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart})),t();return}if(this.measureLineMoveInfo.name==="T1"||this.measureLineMoveInfo.name==="T2"){this.enlargeAnalysisData.TAxis=n.calcTelectricAxis(m(c({},e),{QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,Tend:this.currentLeadAnalyseValue.KeyPosByBeat.Tend})),t();return}}calculatedValue(){var f,p,A,L;const e=(f=this.M1)==null?void 0:f.childOfName("Line_M1"),t=(p=this.M2)==null?void 0:p.childOfName("Line_M2");if(!e||!t)return;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=n.calcMs(i,this.currentSpeedValue,this.gridConfig.cellMg,this.magnification);this.difference.timeDifference=l;const h=parseInt(`${(a-this.drawWaveFromX)/this.currentStep}`),d=parseInt(`${(s-this.drawWaveFromX)/this.currentStep}`);let u=[];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&&h>0&&d<=u.length-1&&h<=u.length-1){const v=(Math.abs(u[d][1]-u[h][1])/this.currentSens).toFixed(2);this.difference.amplitudeDifference=v}else this.difference.amplitudeDifference=""}toggleGain(e){if(e){this.currentGainIdx<this.gains.length-1&&(this.currentGainIdx+=1,this.currentSens=this.gains[this.currentGainIdx].value*this.gridConfig.cellMg*this.magnification,this.toggleRender());return}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())}toggleSpeeds(e){console.log("toggleSpeed",this.speeds,this.currentSpeedIdx);const t=()=>{const a=n.getStepForSpeed(this.currentSpeedValue,this.gridConfig.cellMg,this.sampleRate);this.currentStep=a*this.magnification};if(e){this.currentSpeedIdx<this.speeds.length-1&&(this.currentSpeedIdx+=1,this.currentSpeedValue=this.speeds[this.currentSpeedIdx].value,t(),this.toggleRender());return}this.currentSpeedIdx>0&&this.currentSpeedIdx<=this.speeds.length-1&&(this.currentSpeedIdx-=1,this.currentSpeedValue=this.speeds[this.currentSpeedIdx].value,t(),this.toggleRender())}toggleBeaadId(e){var t,a;if(e){this.currentLeadAnalyseValueIdx<this.analyseValue.length-1&&(this.currentLeadAnalyseValueIdx+=1,this.currentLeadAnalyseValue=m(c({},this.analyseValue[this.currentLeadAnalyseValueIdx]),{BeatCount:((t=this.currentLeadAnalyseValue)==null?void 0:t.BeatCount)||0}),this.toggleRender());return}this.currentLeadAnalyseValueIdx>1&&this.currentLeadAnalyseValueIdx<=this.analyseValue.length-1&&(this.currentLeadAnalyseValueIdx-=1,this.currentLeadAnalyseValue=m(c({},this.analyseValue[this.currentLeadAnalyseValueIdx]),{BeatCount:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatCount)||0}),this.toggleRender())}toggleRender(){this.createLeadHead(),this.createSensAndSpeed(),this.drawWaveFrom(),this.drawMeasureLine(),this.calculatedValue(),this.electricAxisAnalyse(),this.processEnlargeAnalysis()}mainBoxDbClick(){const e=Date.now();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}};r([o.Prop({default:()=>""})],exports.default.prototype,"className",2);r([o.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"width",2);r([o.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"height",2);r([o.Prop({required:!0})],exports.default.prototype,"gridConfig",2);r([o.Prop({required:!0})],exports.default.prototype,"speedValue",2);r([o.Prop({default:1})],exports.default.prototype,"sens",2);r([o.Prop({default:1})],exports.default.prototype,"step",2);r([o.Prop({required:!0})],exports.default.prototype,"sampleRate",2);r([o.Prop({required:!0})],exports.default.prototype,"sensitivity",2);r([o.Prop({required:!0,default:()=>[]})],exports.default.prototype,"complexData",2);r([o.Prop({required:!0,default:()=>[]})],exports.default.prototype,"normalData",2);r([o.Prop({default:!1})],exports.default.prototype,"isShowEnlargeWave",2);r([o.Prop({default:!0})],exports.default.prototype,"isShowSyncAnalyseValue",2);r([o.Prop({default:()=>({leadHedeWidth:20,leadHedeColor:"#000",leadHedeLineWidth:2})})],exports.default.prototype,"leadHeadConfig",2);r([o.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);r([o.Prop({default:5})],exports.default.prototype,"magnification",2);r([o.Prop({default:()=>[]})],exports.default.prototype,"leadNameList",2);r([o.Prop({required:!0})],exports.default.prototype,"activeLeadIdx",2);r([o.Prop({required:!0})],exports.default.prototype,"activeLeadAnalyseValue",2);r([o.Prop({required:!0})],exports.default.prototype,"analyseValue",2);r([o.Prop({default:"ECG"})],exports.default.prototype,"typeClass",2);r([o.Prop({default:()=>["black","red","orange","yellow","green","#4B0082","blue","purple","#FFB6C1","#EE82EE","#6A5ACD","#00FFFF"]})],exports.default.prototype,"leadColors",2);r([o.Prop({default:n.AnalysisMode.CompoundWave})],exports.default.prototype,"enlargeWaveMode",2);r([o.Prop({required:!0})],exports.default.prototype,"conventionalECGConfig",2);r([o.Prop({default:()=>[]})],exports.default.prototype,"gains",2);r([o.Prop({default:()=>[]})],exports.default.prototype,"speeds",2);r([B.Watch("activeLeadIdx")],exports.default.prototype,"watchActiveLeadIdx",1);r([B.Watch("leadNameList",{deep:!0,immediate:!0})],exports.default.prototype,"watchLeadNameList",1);exports.default=r([b.default({name:"Methods"})],exports.default);
@@ -0,0 +1,93 @@
1
+ .flexAlignCenter {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+ #mx-enlarge-wave {
6
+ background-color: #fff;
7
+ }
8
+ #mx-enlarge-wave .wave-selects {
9
+ height: 40px;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ padding-right: 10px;
14
+ }
15
+ #mx-enlarge-wave .wave-selects .el-button {
16
+ background-color: #e5edfd;
17
+ color: #333;
18
+ }
19
+ #mx-enlarge-wave .wave-selects .el-button.active {
20
+ background-color: #b2c9f7;
21
+ }
22
+ #mx-enlarge-wave .container-box {
23
+ display: flex;
24
+ border-bottom: 1px solid #eee;
25
+ }
26
+ #mx-enlarge-wave .container-box .main-box {
27
+ position: relative;
28
+ }
29
+ #mx-enlarge-wave .container-box .main-box #enlarge-wave-from-box {
30
+ position: absolute;
31
+ top: 0;
32
+ left: 0;
33
+ }
34
+ #mx-enlarge-wave .container-box .table-box {
35
+ flex: 1;
36
+ font-size: 13px;
37
+ color: #333;
38
+ display: flex;
39
+ flex-direction: column;
40
+ justify-content: space-between;
41
+ padding-bottom: 20px;
42
+ }
43
+ #mx-enlarge-wave .container-box .table-box .header {
44
+ background-color: #b2c9f7;
45
+ height: 34px;
46
+ font-weight: 600;
47
+ line-height: 34px;
48
+ padding-left: 14px;
49
+ }
50
+ #mx-enlarge-wave .container-box .el-descriptions {
51
+ font-size: 13px;
52
+ color: #333;
53
+ padding-left: 14px;
54
+ }
55
+ #mx-enlarge-wave .container-box .el-descriptions:not(.is-bordered) .el-descriptions-item__cell {
56
+ padding-bottom: 0;
57
+ }
58
+ #mx-enlarge-wave .container-box .el-descriptions .el-descriptions-item__label {
59
+ width: 35%;
60
+ }
61
+ #mx-enlarge-wave .container-box .el-descriptions .el-descriptions-item__info {
62
+ width: 70%;
63
+ display: flex;
64
+ justify-content: space-between;
65
+ }
66
+ #mx-enlarge-wave .operate-box {
67
+ height: 50px;
68
+ font-size: 14px;
69
+ display: flex;
70
+ align-items: center;
71
+ }
72
+ #mx-enlarge-wave .operate-box_item {
73
+ display: flex;
74
+ align-items: center;
75
+ margin-right: 10px;
76
+ }
77
+ #mx-enlarge-wave .operate-box_item span {
78
+ margin-right: 4px;
79
+ }
80
+ #mx-enlarge-wave .operate-box_item .icon-tips {
81
+ padding: 0;
82
+ border: none;
83
+ font-size: 22px;
84
+ }
85
+ #mx-enlarge-wave .operate-box_item .icon-tips.el-button {
86
+ color: #77a1f5;
87
+ }
88
+ #mx-enlarge-wave .operate-box_item .icon-tips.el-button + .el-button {
89
+ margin-left: 2px;
90
+ }
91
+ #mx-enlarge-wave .operate-box_item .icon-tips.el-button.active {
92
+ color: #b2c9f7;
93
+ }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./And2V5LeadPower.vue_vue_type_script_lang.js"),t=require("./And2V5LeadPower.vue_vue_type_template_lang.js"),u=require("../../../_virtual/vueComponentNormalizer.js"),n={};var o=u.default(r.default,t.render,t.staticRenderFns,!1,_,null,null,null);function _(a){for(let e in n)this[e]=n[e]}const l=function(){return o.exports}();exports.default=l;
@@ -0,0 +1 @@
1
+ "use strict";var H=Object.defineProperty,U=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var Q=(s,e,t)=>e in s?H(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e||(e={}))K.call(e,t)&&Q(s,t,e[t]);if(M)for(var t of M(e))S.call(e,t)&&Q(s,t,e[t]);return s},Z=(s,e)=>U(s,J(e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const X=require("vue"),A=require("../../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const E=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),O=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),o=require("zrender"),Y=require("../../BackgroundGrid/index2.js"),ee=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},te=ee(X);var ie=Object.defineProperty,se=Object.getOwnPropertyDescriptor,B=(s,e,t,r)=>{for(var i=r>1?void 0:r?se(e,t):e,n=s.length-1,u;n>=0;n--)(u=s[n])&&(i=(r?u(e,t,i):u(i))||i);return r&&i&&ie(e,t,i),i};exports.default=class extends te.default{constructor(){super(...arguments),this.sceneIns=Object.freeze(null),this.AssistCtx=Object.freeze(null),this.waveFromGroup=Object.freeze(null),this.splitLineGroup=Object.freeze(null),this.rows=Object.freeze(3),this.columns=Object.freeze(2),this.splitLineW=Object.freeze(10),this.splitBlockHeight=Object.freeze(0),this.splitBlockWidth=Object.freeze(0),this.ratio=1,this.leadData=Object.freeze([{style:"Gyy",name:"II\u5BFC\u8054\u81EA\u529F\u7387\u8C31"},{style:"Gxx",name:"V5\u5BFC\u8054\u81EA\u529F\u7387\u8C31"},{style:"RF",name:"\u5FC3\u7535\u56FE\u76F8\u5E72\u51FD\u6570"},{style:"Qxy",name:"\u5FC3\u7535\u56FE\u76F8\u4F4D\u4F20\u9012\u51FD\u6570"},{style:"Vxy",name:"\u5FC3\u7535\u56FE\u4E92\u76F8\u5173\u51FD\u6570"},{style:"PIH",name:"\u5FC3\u7535\u56FE\u8109\u51B2\u54CD\u5E94"}])}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchGain(){this.drawBlockWave()}destroyed(){var s,e,t;(s=this.waveFromGroup)==null||s.removeAll(),(e=this.splitLineGroup)==null||e.removeAll();try{(t=this.sceneIns)==null||t.dispose()}catch(r){}}created(){this.initConfig()}mounted(){this.init()}repaint(){var s,e;(s=this.sceneIns)==null||s.clear(),(e=this.sceneIns)==null||e.resize({width:this.width,height:this.height}),this.calcConfig(),this.combinationDrawing()}init(){this.initWaveFormPeer(),this.combinationDrawing()}initWaveFormPeer(){const s=document.getElementById("and2v5-leadpower-container");this.sceneIns=o.init(s,{width:this.width,height:this.height,devicePixelRatio:2});const e=document.getElementById("MXGrid_and2v5_leadpower");this.AssistCtx=e.getContext("2d")}initConfig(){this.calcConfig(),this.splitLineGroup=new o.Group({name:"splitLine"}),this.waveFromGroup=new o.Group({name:"waveFrom"})}calcConfig(){var s,e,t,r;this.splitBlockHeight=(this.height-this.splitLineW*(this.rows-1))/this.rows,this.splitBlockWidth=(this.width-this.splitLineW*(this.columns-1))/this.columns,this.splitBlockWidth<(((s=this.powerIIV5Info.config)==null?void 0:s.XAxisLen)||0)+(((e=this.powerIIV5Info.config)==null?void 0:e.girdCell)||0)&&(this.ratio=this.splitBlockWidth/((((t=this.powerIIV5Info.config)==null?void 0:t.XAxisLen)||1)+(((r=this.powerIIV5Info.config)==null?void 0:r.girdCell)||0)))}combinationDrawing(){this.drawSplitLine(),this.drawBlockWave()}drawSplitLine(){var s,e,t,r,i;(s=this.splitLineGroup)!=null&&s.childCount()&&((e=this.sceneIns)==null||e.remove(this.splitLineGroup),this.splitLineGroup.removeAll());for(let n=1;n<this.rows;n++)(t=this.splitLineGroup)==null||t.add(new o.Rect({name:`row_${n}`,cursor:"",shape:{x:0,y:this.splitBlockHeight*n+(n-1)*this.splitLineW,width:this.width,height:this.splitLineW},style:{fill:"#fff"}}));for(let n=1;n<this.columns;n++)(r=this.splitLineGroup)==null||r.add(new o.Rect({name:`col_${n}`,cursor:"",shape:{x:this.splitBlockWidth*n+(n-1)*this.splitLineW,y:0,width:this.splitLineW,height:this.height},style:{fill:"#fff"}}));(i=this.sceneIns)==null||i.add(this.splitLineGroup)}drawBlockWave(){var c,f,w,l,I,V,G,g;(c=this.waveFromGroup)!=null&&c.childCount()&&((f=this.sceneIns)==null||f.remove(this.waveFromGroup),this.waveFromGroup.removeAll());const s=(((w=this.powerIIV5Info.config)==null?void 0:w.girdCell)||0)*this.ratio,e=(((l=this.powerIIV5Info.config)==null?void 0:l.XAxisLen)||0)*this.ratio,t=(((I=this.powerIIV5Info.config)==null?void 0:I.YAxisH)||0)*this.ratio,r=(((V=this.powerIIV5Info.config)==null?void 0:V.unitHz)||1)*this.ratio,i=(e-(e-s))/(this.gridConfig.cellMg*this.ratio),n=Math.floor(e/r),u=2048*(((G=this.powerIIV5Info.config)==null?void 0:G.dRate_Y)||1);let y=0,T=0,p=0,$=0,R=0,P=0;const L={stroke:"#000",lineWidth:1};let h={};for(let m=1;m<=this.rows;m++){y=this.splitBlockHeight*m+(m-1)*this.splitLineW,T=(this.splitBlockHeight+this.splitLineW)*(m-1);for(let v=1;v<=this.columns;v++)p=(this.splitBlockWidth+this.splitLineW)*(v-1),$=p+s*2,R=y-s*2,P=v+(m-1)*this.columns-1,h={descrice:this.leadData[P],oAX:$,oAY:R,YAxisH:t,lineStyle:L,XAxisLen:e,girdCell:s,lineXBlock:n,unitHz:r,orgStartY:T,fixedValue:u,orgStartX:p,blockCells:i,notifyIdx:v-1},this.leadData[P].style==="Gyy"?this.drawGyyAndGxx(h):this.leadData[P].style==="Gxx"?this.drawGyyAndGxx(h):this.leadData[P].style==="RF"?this.drawRF(h):this.leadData[P].style==="Qxy"?this.drawQxy(h):this.leadData[P].style==="Vxy"?this.drawVxy(h):this.leadData[P].style==="PIH"&&this.drawPIH(h)}(g=this.sceneIns)==null||g.add(this.waveFromGroup)}getGain(s,e,t){var y,T,p;let r=-1,i=1;for(var n=0;n<(((y=this.powerIIV5Info.config)==null?void 0:y.XAxisLen)||0)&&n<e.length;n+=2){var u=e[n/2]/s/16/6*t*(((T=this.powerIIV5Info.config)==null?void 0:T.scale)||1)*(((p=this.powerIIV5Info.config)==null?void 0:p.modulus_figPower)||1);u>r&&(r=u)}return r<20?i=3:r>=20&&r<=40&&(i=2),i}drawGyyAndGxx({descrice:s,oAX:e,oAY:t,YAxisH:r,lineStyle:i,XAxisLen:n,girdCell:u,lineXBlock:y,unitHz:T,orgStartY:p,fixedValue:$,orgStartX:R,blockCells:P,notifyIdx:L}){var V,G,g,m,v,W,k,z,C,_,D,b,d,a,j;let h=0,c=0;const f=((V=this.powerIIV5Info.dataInfo.AutoPowerSpectrum[L])==null?void 0:V.WaveData)||[],w=this.getGain($,f,u);(G=this.waveFromGroup)==null||G.add(new o.Text({cursor:"",style:{x:e,y:p+28,text:s.style,fontSize:14,fontFamily:"Arial"}})),(g=this.waveFromGroup)==null||g.add(new o.Text({cursor:"",style:{x:e+u*3,y:p+28,text:s.name,fontSize:14,fontFamily:"Arial"}})),(m=this.waveFromGroup)==null||m.add(new o.Line({cursor:"",shape:{x1:e,y1:t,x2:e,y2:t-r},style:i})),(v=this.waveFromGroup)==null||v.add(new o.Line({cursor:"",shape:{x1:e,y1:t,x2:e+n,y2:t},style:i}));for(let x=0;x<=3;x++)h=t-2*u*x,x!==0&&((W=this.waveFromGroup)==null||W.add(new o.Text({cursor:"",style:{x:L===0&&x!==0?e-38:e-14,y:h-7,text:`${L===0&&x!==0?(x/w).toFixed(2):x}`,fontSize:14,fontFamily:"Arial"}}))),(k=this.waveFromGroup)==null||k.add(new o.Line({cursor:"",shape:{x1:e,y1:h,x2:e-4,y2:h},style:i}));for(let x=0;x<=y;x++)c=e+T*x,(z=this.waveFromGroup)==null||z.add(new o.Text({cursor:"",style:{x:c-6,y:t+7,text:x*5+"",fontSize:14,fontFamily:"Arial"}})),x===y&&((C=this.waveFromGroup)==null||C.add(new o.Text({cursor:"",style:{x:e+T*y,y:t-30,text:"HZ",fontSize:14,fontFamily:"Arial"}}))),(_=this.waveFromGroup)==null||_.add(new o.Line({cursor:"",shape:{x1:c,y1:t,x2:c,y2:t+4},style:i}));let l=0;const I=[];for(;l<(((D=this.powerIIV5Info.config)==null?void 0:D.XAxisLen)||0)-(((b=this.powerIIV5Info.config)==null?void 0:b.girdCell)||0)&&f.length;l+=2){let x=f[l/2]/$/16/this.gain.value*u*(((d=this.powerIIV5Info.config)==null?void 0:d.scale)||1)*(((a=this.powerIIV5Info.config)==null?void 0:a.modulus_figPower)||1);x*=w,x>r&&(x=r),l===0?I.push([e,t-x]):I.push([e+l*this.ratio,t-x])}this.$emit("notifyPInfoPowerIIV5",{key:"AutoPowerSpectrum",ind:L,blocks:P,DataEndingPoint:(l-2)/2}),(j=this.sceneIns)==null||j.add(new o.Polyline({cursor:"",shape:{points:I},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}})),this.drawBlockTips(R,p,s.style,this.powerIIV5Info.dataInfo.AutoPowerSpectrum[L])}drawRF({descrice:s,oAX:e,oAY:t,YAxisH:r,lineStyle:i,XAxisLen:n,girdCell:u,lineXBlock:y,unitHz:T,orgStartY:p,fixedValue:$,orgStartX:R,blockCells:P,notifyIdx:L}){var V,G,g,m,v,W,k,z,C,_,D,b,d;let h=0,c=0;const f=((V=this.powerIIV5Info.dataInfo.RF)==null?void 0:V.WaveData)||[];(G=this.waveFromGroup)==null||G.add(new o.Text({cursor:"",style:{x:e,y:p+28,text:s.style,fontSize:14,fontFamily:"Arial"}})),(g=this.waveFromGroup)==null||g.add(new o.Text({cursor:"",style:{x:e+u*3,y:p+28,text:s.name,fontSize:14,fontFamily:"Arial"}})),(m=this.waveFromGroup)==null||m.add(new o.Line({cursor:"",shape:{x1:e,y1:t,x2:e,y2:t-r},style:i})),(v=this.waveFromGroup)==null||v.add(new o.Line({cursor:"",shape:{x1:e,y1:t,x2:e+n,y2:t},style:i}));for(let a=0;a<=1;a++)h=t-5*u*a,a!==0&&((W=this.waveFromGroup)==null||W.add(new o.Text({cursor:"",style:{x:e-14,y:h-7,text:`${a}`,fontSize:14,fontFamily:"Arial"}})),(k=this.waveFromGroup)==null||k.add(new o.Line({cursor:"",shape:{x1:e,y1:h,x2:e+n,y2:h},style:Z(N({},i),{stroke:"#FF6CFF"})}))),(z=this.waveFromGroup)==null||z.add(new o.Line({cursor:"",shape:{x1:e,y1:h,x2:e-4,y2:h},style:i}));for(let a=0;a<=y;a++)c=e+T*a,(C=this.waveFromGroup)==null||C.add(new o.Text({cursor:"",style:{x:c-6,y:t+7,text:a*5+"",fontSize:14,fontFamily:"Arial"}})),a===y&&((_=this.waveFromGroup)==null||_.add(new o.Text({cursor:"",style:{x:e+T*y,y:t-30,text:"HZ",fontSize:14,fontFamily:"Arial"}}))),(D=this.waveFromGroup)==null||D.add(new o.Line({cursor:"",shape:{x1:c,y1:t,x2:c,y2:t+4},style:i}));const w=5*u;let l=0;const I=[];for(;l<(((b=this.powerIIV5Info.config)==null?void 0:b.XAxisLen)||0)-20&&l<f.length;l+=2){let a=f[l/2]*w;a>r&&(a=r),l===0?I.push([e,t-a]):I.push([e+l*this.ratio,t-a])}this.$emit("notifyPInfoPowerIIV5",{key:"RF",ind:L,blocks:P,DataEndingPoint:(l-2)/2}),(d=this.sceneIns)==null||d.add(new o.Polyline({cursor:"",shape:{points:I},style:{stroke:"#7875F8",lineWidth:this.leadConfig.lineWidth*1.5}})),this.drawBlockTips(R,p,s.style,this.powerIIV5Info.dataInfo.RF)}drawQxy({descrice:s,oAX:e,oAY:t,YAxisH:r,lineStyle:i,XAxisLen:n,girdCell:u,lineXBlock:y,unitHz:T,orgStartY:p,fixedValue:$,orgStartX:R,blockCells:P,notifyIdx:L}){var V,G,g,m,v,W,k,z,C,_,D,b;let h=0,c=0;const f=((V=this.powerIIV5Info.dataInfo.Phase)==null?void 0:V.WaveData)||[],w=3*u;(G=this.waveFromGroup)==null||G.add(new o.Text({cursor:"",style:{x:e,y:p+28,text:s.style,fontSize:14,fontFamily:"Arial"}})),(g=this.waveFromGroup)==null||g.add(new o.Text({cursor:"",style:{x:e+u*3,y:p+28,text:s.name,fontSize:14,fontFamily:"Arial"}})),(m=this.waveFromGroup)==null||m.add(new o.Line({cursor:"",shape:{x1:e,y1:t,x2:e,y2:t-r},style:i})),(v=this.waveFromGroup)==null||v.add(new o.Line({cursor:"",shape:{x1:e,y1:t-w,x2:e+n,y2:t-w},style:i}));for(let d=0;d<=6;d++)h=t-u*d,(W=this.waveFromGroup)==null||W.add(new o.Text({cursor:"",style:{x:e-7,y:h-7,text:`${-180+d*60}`,fontSize:14,fontFamily:"Arial",align:"right"}})),(k=this.waveFromGroup)==null||k.add(new o.Line({cursor:"",shape:{x1:e,y1:h,x2:e-4,y2:h},style:i}));for(let d=0;d<=y;d++)c=e+T*d,d!==0&&((z=this.waveFromGroup)==null||z.add(new o.Text({cursor:"",style:{x:c-6,y:t-w+7,text:d*5+"",fontSize:14,fontFamily:"Arial"}}))),d===y&&((C=this.waveFromGroup)==null||C.add(new o.Text({cursor:"",style:{x:e+T*y,y:t-w-30,text:"HZ",fontSize:14,fontFamily:"Arial"}}))),(_=this.waveFromGroup)==null||_.add(new o.Line({cursor:"",shape:{x1:c,y1:t-w,x2:c,y2:t-w+4},style:i}));let l=0;const I=[];for(;l<(((D=this.powerIIV5Info.config)==null?void 0:D.XAxisLen)||0)-20&&l<f.length;l+=2){let d=f[l/2]*w/Math.PI;d>r&&(d=r),d<-r&&(d=-r),l===0?I.push([e,t-w-d]):I.push([e+l*this.ratio,t-w-d])}this.$emit("notifyPInfoPowerIIV5",{key:"Phase",ind:L,blocks:P,DataEndingPoint:(l-2)/2}),(b=this.sceneIns)==null||b.add(new o.Polyline({cursor:"",shape:{points:I},style:{stroke:"#7875F8",lineWidth:this.leadConfig.lineWidth*1.5}})),this.drawBlockTips(R,p,s.style,this.powerIIV5Info.dataInfo.Phase)}drawVxy({descrice:s,oAX:e,oAY:t,YAxisH:r,lineStyle:i,XAxisLen:n,girdCell:u,lineXBlock:y,unitHz:T,orgStartY:p,fixedValue:$,orgStartX:R,blockCells:P,notifyIdx:L}){var g,m,v,W,k,z,C,_,D,b,d;let h=0;const c=((g=this.powerIIV5Info.dataInfo.CrossCorrelation)==null?void 0:g.WaveData)||[];(m=this.waveFromGroup)==null||m.add(new o.Text({cursor:"",style:{x:e,y:p+28,text:s.style,fontSize:14,fontFamily:"Arial"}})),(v=this.waveFromGroup)==null||v.add(new o.Text({cursor:"",style:{x:e+u*3,y:p+28,text:s.name,fontSize:14,fontFamily:"Arial"}})),(W=this.waveFromGroup)==null||W.add(new o.Line({cursor:"",shape:{x1:e+n/2,y1:t,x2:e+n/2,y2:t-r},style:i})),(k=this.waveFromGroup)==null||k.add(new o.Line({cursor:"",shape:{x1:e,y1:t,x2:e+n,y2:t},style:i}));for(let a=0;a<=6;a++)h=e+u*2*a+u,(z=this.waveFromGroup)==null||z.add(new o.Text({cursor:"",style:{x:h-6,y:t+7,text:a*.5-1.5+"",fontSize:14,fontFamily:"Arial"}})),a===6&&((C=this.waveFromGroup)==null||C.add(new o.Text({cursor:"",style:{x:e+T*y,y:t-30,text:"S",fontSize:14,fontFamily:"Arial"}}))),(_=this.waveFromGroup)==null||_.add(new o.Line({cursor:"",shape:{x1:h,y1:t,x2:h,y2:t+4},style:i}));let f=60;const w=[],l=((D=this.powerIIV5Info.config)==null?void 0:D.modulus_figPower)||1,I=1/(1e3*4096)/4;let V=-c[60]*I,G=0;for(let a=60;a<c.length;a++)G=-c[a]*I,G>V&&G>0&&(V=G);for(;f*1.5-87<(((b=this.powerIIV5Info.config)==null?void 0:b.XAxisLen)||0)&&f<c.length;f++){let a=c[f]*I*l;a>r&&(a=r),a<-r&&(a=-r),w.push([e+f*1.5*this.ratio-87,t-a-V*l])}this.$emit("notifyPInfoPowerIIV5",{key:"CrossCorrelation",ind:L,blocks:P,DataEndingPoint:(f-2)/2}),(d=this.sceneIns)==null||d.add(new o.Polyline({cursor:"",shape:{points:w},style:{stroke:"#7875F8",lineWidth:this.leadConfig.lineWidth}})),this.drawBlockTips(R,p,s.style,this.powerIIV5Info.dataInfo.CrossCorrelation)}drawPIH({descrice:s,oAX:e,oAY:t,YAxisH:r,lineStyle:i,XAxisLen:n,girdCell:u,lineXBlock:y,unitHz:T,orgStartY:p,fixedValue:$,orgStartX:R,blockCells:P,notifyIdx:L}){var G,g,m,v,W,k,z,C,_,D,b,d;let h=0;const c=((G=this.powerIIV5Info.dataInfo.ImpluseResponse)==null?void 0:G.WaveData)||[];(g=this.waveFromGroup)==null||g.add(new o.Text({cursor:"",style:{x:e,y:p+28,text:s.style,fontSize:14,fontFamily:"Arial"}})),(m=this.waveFromGroup)==null||m.add(new o.Text({cursor:"",style:{x:e+u*3,y:p+28,text:s.name,fontSize:14,fontFamily:"Arial"}})),(v=this.waveFromGroup)==null||v.add(new o.Line({cursor:"",shape:{x1:e+n/2,y1:t,x2:e+n/2,y2:t-r},style:i})),(W=this.waveFromGroup)==null||W.add(new o.Line({cursor:"",shape:{x1:e,y1:t,x2:e+n,y2:t},style:i}));for(let a=0;a<=6;a++)h=e+u*2*a+u,(k=this.waveFromGroup)==null||k.add(new o.Text({cursor:"",style:{x:h-6,y:t+7,text:a*.5-1.5+"",fontSize:14,fontFamily:"Arial"}})),a===6&&((z=this.waveFromGroup)==null||z.add(new o.Text({cursor:"",style:{x:e+T*y,y:t-30,text:"S",fontSize:14,fontFamily:"Arial"}}))),(C=this.waveFromGroup)==null||C.add(new o.Line({cursor:"",shape:{x1:h,y1:t,x2:h,y2:t+4},style:i}));let f=0;const w=3200,l=[],I=((_=this.powerIIV5Info.config)==null?void 0:_.modulus_figPower)||1,V=((D=this.powerIIV5Info.config)==null?void 0:D.scale)||1;for(;f<(((b=this.powerIIV5Info.config)==null?void 0:b.XAxisLen)||0)&&f<c.length;f++){let a=c[f]*w*V*I;a>r&&(a=r),a<-r&&(a=-r),l.push([e+f*this.ratio*V,t-a])}this.$emit("notifyPInfoPowerIIV5",{key:"ImpluseResponse",ind:L,blocks:P,DataEndingPoint:(f-2)/2}),(d=this.sceneIns)==null||d.add(new o.Polyline({cursor:"",shape:{points:l},style:{stroke:"#7875F8",lineWidth:this.leadConfig.lineWidth}})),this.drawBlockTips(R,p,s.style,this.powerIIV5Info.dataInfo.ImpluseResponse)}drawBlockTips(s,e,t,r){var n,u,y,T,p,$,R,P,L,h,c,f,w,l,I,V,G,g,m,v,W,k,z,C,_,D,b,d,a,j,x,q;const i=s+this.splitBlockWidth;if(t==="Gyy"||t==="Gxx"){const F=r;(n=this.waveFromGroup)==null||n.add(this.createTipsText(`X:${F.X}`,i-110,e+20)),(u=this.waveFromGroup)==null||u.add(this.createTipsText(`Y: ${this.gain.label}`||F.Y,i-110,e+40)),(y=this.waveFromGroup)==null||y.add(this.createTipsText("H",i-110,e+60)),(T=this.waveFromGroup)==null||T.add(this.createTipsText(`${F.H==="1"?"+":"-"}`,i-110,e+70)),(p=this.waveFromGroup)==null||p.add(this.createTipsText("U",i-95,e+60)),($=this.waveFromGroup)==null||$.add(this.createTipsText(`${F.U==="1"?"+":"-"}`,i-95,e+70)),(R=this.waveFromGroup)==null||R.add(this.createTipsText("N",i-80,e+60)),(P=this.waveFromGroup)==null||P.add(this.createTipsText(F.N==="1"?"+":"-",i-80,e+70)),(L=this.waveFromGroup)==null||L.add(this.createTipsText("A",i-65,e+60)),(h=this.waveFromGroup)==null||h.add(this.createTipsText(F.A==="1"?"+":"-",i-65,e+70)),(c=this.waveFromGroup)==null||c.add(this.createTipsText("A5",i-45,e+60)),(f=this.waveFromGroup)==null||f.add(this.createTipsText(F.A5==="1"?"+":"-",i-45,e+70)),(w=this.waveFromGroup)==null||w.add(this.createTipsText("Ra",i-25,e+60)),(l=this.waveFromGroup)==null||l.add(this.createTipsText(F.Ra==="1"?"+":"-",i-25,e+70))}else if(t==="RF"){const F=r;(I=this.waveFromGroup)==null||I.add(this.createTipsText(`X:${F.X}`,i-110,e+20)),(V=this.waveFromGroup)==null||V.add(this.createTipsText(`Y: ${F.Y}`,i-110,e+40)),(G=this.waveFromGroup)==null||G.add(this.createTipsText("Rf",i-110,e+60)),(g=this.waveFromGroup)==null||g.add(this.createTipsText(`${F.Rf==="1"?"+":"-"}`,i-110,e+70))}else if(t==="Qxy"){const F=r;(m=this.waveFromGroup)==null||m.add(this.createTipsText(`X:${F.X}`,i-110,e+20)),(v=this.waveFromGroup)==null||v.add(this.createTipsText(`Y: ${F.Y}`,i-110,e+40)),(W=this.waveFromGroup)==null||W.add(this.createTipsText("Pha",i-110,e+60)),(k=this.waveFromGroup)==null||k.add(this.createTipsText(`${F.Pha==="1"?"+":"-"}`,i-110,e+70))}else if(t==="Vxy"){const F=r;(z=this.waveFromGroup)==null||z.add(this.createTipsText(`X:${F.X}`,i-110,e+20))}else if(t==="PIH"){const F=r;(C=this.waveFromGroup)==null||C.add(this.createTipsText(`X:${F.X}`,i-110,e+20)),(_=this.waveFromGroup)==null||_.add(this.createTipsText("f",i-110,e+60)),(D=this.waveFromGroup)==null||D.add(this.createTipsText(`${F.f==="1"?"+":"-"}`,i-110,e+70)),(b=this.waveFromGroup)==null||b.add(this.createTipsText("M",i-95,e+60)),(d=this.waveFromGroup)==null||d.add(this.createTipsText(`${F.M==="1"?"+":"-"}`,i-95,e+70)),(a=this.waveFromGroup)==null||a.add(this.createTipsText("RSR",i-80,e+60)),(j=this.waveFromGroup)==null||j.add(this.createTipsText(F.RSR==="1"?"+":"-",i-70,e+70)),(x=this.waveFromGroup)==null||x.add(this.createTipsText("CSR",i-45,e+60)),(q=this.waveFromGroup)==null||q.add(this.createTipsText(F.CSR==="1"?"+":"-",i-35,e+70))}}createTipsText(s,e,t){return new o.Text({cursor:"",style:{x:e,y:t,text:s,fontSize:14,fontFamily:"Arial",fill:"#000"}})}};B([E.Prop({required:!0,type:Number,validator:s=>typeof s=="number"})],exports.default.prototype,"width",2);B([E.Prop({required:!0,type:Number,validator:s=>typeof s=="number"})],exports.default.prototype,"height",2);B([E.Prop({required:!0})],exports.default.prototype,"gridConfig",2);B([E.Prop({required:!0})],exports.default.prototype,"powerIIV5Info",2);B([E.Prop({required:!0})],exports.default.prototype,"gain",2);B([E.Prop({default:()=>({lineColor:"#7875F8",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);B([O.Watch("width")],exports.default.prototype,"watchWidth",1);B([O.Watch("height")],exports.default.prototype,"watchHeight",1);B([O.Watch("gain")],exports.default.prototype,"watchGain",1);exports.default=B([A.default({name:"And2V5LeadPower",components:{MXBackgroundGrid:Y.default}})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{width:`${e.width}px`,height:`${e.height}px`},attrs:{id:"and2v5-leadpower"}},[i("MXBackgroundGrid",{attrs:{width:e.width,height:e.height,"grid-config":Object.assign({},e.gridConfig,{cellMg:e.gridConfig.cellMg+1}),magnification:e.ratio,model:1,"layer-id":"MXGrid_and2v5_leadpower"}}),i("div",{attrs:{id:"and2v5-leadpower-container"}})],1)},d=[];exports.render=r;exports.staticRenderFns=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./LeadPower12.vue_vue_type_script_lang.js"),t=require("./LeadPower12.vue_vue_type_template_lang.js"),u=require("../../../_virtual/vueComponentNormalizer.js"),n={};var o=u.default(r.default,t.render,t.staticRenderFns,!1,_,null,null,null);function _(a){for(let e in n)this[e]=n[e]}const l=function(){return o.exports}();exports.default=l;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const U=require("vue"),S=require("../../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const G=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),L=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),h=require("zrender"),Z=require("../../BackgroundGrid/index2.js"),J=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},K=J(U);var Q=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,d=(t,e,s,i)=>{for(var a=i>1?void 0:i?Y(e,s):e,o=t.length-1,p;o>=0;o--)(p=t[o])&&(a=(i?p(e,s,a):p(a))||a);return i&&a&&Q(e,s,a),a};exports.default=class extends K.default{constructor(){super(...arguments),this.sceneIns=Object.freeze(null),this.AssistCtx=Object.freeze(null),this.waveFromGroup=Object.freeze(null),this.splitLineGroup=Object.freeze(null),this.rows=Object.freeze(3),this.columns=Object.freeze(4),this.splitLineW=Object.freeze(10),this.splitBlockHeight=Object.freeze(0),this.splitBlockWidth=Object.freeze(0),this.ratio=1}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchGain(){this.drawBlockWave()}destroyed(){var t,e,s;(t=this.waveFromGroup)==null||t.removeAll(),(e=this.splitLineGroup)==null||e.removeAll();try{(s=this.sceneIns)==null||s.dispose()}catch(i){}}created(){this.initConfig()}mounted(){this.init()}repaint(){var t,e;(t=this.sceneIns)==null||t.clear(),(e=this.sceneIns)==null||e.resize({width:this.width,height:this.height}),this.calcConfig(),this.combinationDrawing()}init(){this.initWaveFormPeer(),this.combinationDrawing()}initWaveFormPeer(){const t=document.getElementById("power12-container");this.sceneIns=h.init(t,{width:this.width,height:this.height,devicePixelRatio:2});const e=document.getElementById("MXGrid_power12");this.AssistCtx=e.getContext("2d")}initConfig(){this.calcConfig(),this.splitLineGroup=new h.Group({name:"splitLine"}),this.waveFromGroup=new h.Group({name:"waveFrom"})}calcConfig(){var t,e,s,i;this.splitBlockHeight=(this.height-this.splitLineW*(this.rows-1))/this.rows,this.splitBlockWidth=(this.width-this.splitLineW*(this.columns-1))/this.columns,this.splitBlockWidth<(((t=this.leadPower12Info.config)==null?void 0:t.XAxisLen)||0)+(((e=this.leadPower12Info.config)==null?void 0:e.girdCell)||0)&&(this.ratio=this.splitBlockWidth/((((s=this.leadPower12Info.config)==null?void 0:s.XAxisLen)||1)+(((i=this.leadPower12Info.config)==null?void 0:i.girdCell)||0)))}combinationDrawing(){this.drawSplitLine(),this.drawBlockWave()}drawSplitLine(){var t,e,s,i,a;(t=this.splitLineGroup)!=null&&t.childCount()&&((e=this.sceneIns)==null||e.remove(this.splitLineGroup),this.splitLineGroup.removeAll());for(let o=1;o<this.rows;o++)(s=this.splitLineGroup)==null||s.add(new h.Rect({name:`row_${o}`,cursor:"",shape:{x:0,y:this.splitBlockHeight*o+(o-1)*this.splitLineW,width:this.width,height:this.splitLineW},style:{fill:"#fff"}}));for(let o=1;o<this.columns;o++)(i=this.splitLineGroup)==null||i.add(new h.Rect({name:`col_${o}`,cursor:"",shape:{x:this.splitBlockWidth*o+(o-1)*this.splitLineW,y:0,width:this.splitLineW,height:this.height},style:{fill:"#fff"}}));(a=this.sceneIns)==null||a.add(this.splitLineGroup)}drawBlockWave(){var P,I,_,b,C,k,A,z,B,j,O,H,X,q,D,E,$,M,R,N,V;(P=this.waveFromGroup)!=null&&P.childCount()&&((I=this.sceneIns)==null||I.remove(this.waveFromGroup),this.waveFromGroup.removeAll());const t=(((_=this.leadPower12Info.config)==null?void 0:_.girdCell)||0)*this.ratio,e=(((b=this.leadPower12Info.config)==null?void 0:b.XAxisLen)||0)*this.ratio,s=(((C=this.leadPower12Info.config)==null?void 0:C.YAxisH)||0)*this.ratio,i=(((k=this.leadPower12Info.config)==null?void 0:k.unitHz)||1)*this.ratio,a=(e-(e-t))/(this.gridConfig.cellMg*this.ratio),o=Math.floor(e/i),p=2048*(((A=this.leadPower12Info.config)==null?void 0:A.dRate_Y)||1);let F=0,T=0,v=0,n=0,l=0,c=0,f=0,y=0,u,w=[];const m={stroke:"#000",lineWidth:1};for(let g=1;g<=this.rows;g++){F=this.splitBlockHeight*g+(g-1)*this.splitLineW,T=(this.splitBlockHeight+this.splitLineW)*(g-1);for(let W=1;W<=this.columns;W++){w=[],v=(this.splitBlockWidth+this.splitLineW)*(W-1),y=W+(g-1)*this.columns-1,u=this.leadPower12Info.dataInfo[y],n=v+t,l=F-t*2,(z=this.waveFromGroup)==null||z.add(new h.Line({cursor:"",shape:{x1:n,y1:l,x2:n,y2:l-s},style:m})),(B=this.waveFromGroup)==null||B.add(new h.Line({cursor:"",shape:{x1:n,y1:l,x2:n+e,y2:l},style:m}));for(let r=0;r<=3;r++)c=l-2*t*r,(j=this.waveFromGroup)==null||j.add(new h.Text({cursor:"",style:{x:n-14,y:c-7,text:r+"",fontSize:14,fontFamily:"Arial"}})),(O=this.waveFromGroup)==null||O.add(new h.Line({cursor:"",shape:{x1:n,y1:c,x2:n-4,y2:c},style:m})),r===3&&((H=this.waveFromGroup)==null||H.add(new h.Text({cursor:"",style:{x:n+10,y:c-14,text:u.LeadName,fontSize:14,fontFamily:"Arial"}})));for(let r=0;r<=o;r++)f=n+i*r,r!==0&&((X=this.waveFromGroup)==null||X.add(new h.Text({cursor:"",style:{x:f-6,y:l+7,text:r*5+"",fontSize:14,fontFamily:"Arial"}}))),r===o&&((q=this.waveFromGroup)==null||q.add(new h.Text({cursor:"",style:{x:n+i*o,y:l-30,text:"HZ",fontSize:14,fontFamily:"Arial"}}))),(D=this.waveFromGroup)==null||D.add(new h.Line({cursor:"",shape:{x1:f,y1:l,x2:f,y2:l+4},style:m}));let x=0;for(;x<(((E=this.leadPower12Info.config)==null?void 0:E.XAxisLen)||0)-((($=this.leadPower12Info.config)==null?void 0:$.girdCell)||0)&&u.WaveData.length;x+=2){let r=u.WaveData[x/2]/p/16/this.gain.value*t*(((M=this.leadPower12Info.config)==null?void 0:M.scale)||1)*(((R=this.leadPower12Info.config)==null?void 0:R.modulus_figPower)||1);r>s&&(r=s),x===0?w.push([n,l-r]):w.push([n+x*this.ratio,l-r])}this.$emit("notifyPowerSpectrum",{ind:y,blocks:a,DataEndingPoint:(x-2)/2}),(N=this.sceneIns)==null||N.add(new h.Polyline({cursor:"",shape:{points:w},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}})),this.drawBlockTips(v,T,u)}}(V=this.sceneIns)==null||V.add(this.waveFromGroup)}drawBlockTips(t,e,s){var a,o,p,F,T,v,n,l,c,f,y,u,w,m;const i=t+this.splitBlockWidth;(a=this.waveFromGroup)==null||a.add(this.createTipsText(`X:${s.X}`,i-110,e+20)),(o=this.waveFromGroup)==null||o.add(this.createTipsText(`Y: ${this.gain.label}`||s.Y,i-110,e+40)),(p=this.waveFromGroup)==null||p.add(this.createTipsText("H",i-110,e+60)),(F=this.waveFromGroup)==null||F.add(this.createTipsText(`${s.H==="1"?"+":"-"}`,i-110,e+70)),(T=this.waveFromGroup)==null||T.add(this.createTipsText("U",i-95,e+60)),(v=this.waveFromGroup)==null||v.add(this.createTipsText(`${s.U==="1"?"+":"-"}`,i-95,e+70)),(n=this.waveFromGroup)==null||n.add(this.createTipsText("N",i-80,e+60)),(l=this.waveFromGroup)==null||l.add(this.createTipsText(s.N==="1"?"+":"-",i-80,e+70)),(c=this.waveFromGroup)==null||c.add(this.createTipsText("A",i-65,e+60)),(f=this.waveFromGroup)==null||f.add(this.createTipsText(s.A==="1"?"+":"-",i-65,e+70)),(y=this.waveFromGroup)==null||y.add(this.createTipsText("A5",i-45,e+60)),(u=this.waveFromGroup)==null||u.add(this.createTipsText(s.A5==="1"?"+":"-",i-45,e+70)),(w=this.waveFromGroup)==null||w.add(this.createTipsText("Ra",i-25,e+60)),(m=this.waveFromGroup)==null||m.add(this.createTipsText(s.Ra==="1"?"+":"-",i-25,e+70))}createTipsText(t,e,s){return new h.Text({cursor:"",style:{x:e,y:s,text:t,fontSize:14,fontFamily:"Arial",fill:"#000"}})}};d([G.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"width",2);d([G.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"height",2);d([G.Prop({required:!0})],exports.default.prototype,"gridConfig",2);d([G.Prop({required:!0})],exports.default.prototype,"leadPower12Info",2);d([G.Prop({required:!0})],exports.default.prototype,"gain",2);d([G.Prop({default:()=>({lineColor:"#7875F8",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);d([L.Watch("width")],exports.default.prototype,"watchWidth",1);d([L.Watch("height")],exports.default.prototype,"watchHeight",1);d([L.Watch("gain")],exports.default.prototype,"watchGain",1);exports.default=d([S.default({name:"LeadPower12",components:{MXBackgroundGrid:Z.default}})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{width:`${e.width}px`,height:`${e.height}px`},attrs:{id:"lead-power12"}},[i("MXBackgroundGrid",{attrs:{width:e.width,height:e.height,"grid-config":Object.assign({},e.gridConfig,{cellMg:e.gridConfig.cellMg+1}),magnification:e.ratio,model:1,"layer-id":"MXGrid_power12"}}),i("div",{attrs:{id:"power12-container"}})],1)},d=[];exports.render=r;exports.staticRenderFns=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./PowerHistogram.vue_vue_type_script_lang.js"),t=require("./PowerHistogram.vue_vue_type_template_lang.js"),n=require("../../../_virtual/vueComponentNormalizer.js"),r={};var u=n.default(o.default,t.render,t.staticRenderFns,!1,_,null,null,null);function _(l){for(let e in r)this[e]=r[e]}const s=function(){return u.exports}();exports.default=s;
@@ -0,0 +1,3 @@
1
+ "use strict";var T=Object.defineProperty,S=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var O=(t,r,e)=>r in t?T(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,p=(t,r)=>{for(var e in r||(r={}))L.call(r,e)&&O(t,e,r[e]);if(D)for(var e of D(r))R.call(r,e)&&O(t,e,r[e]);return t},l=(t,r)=>S(t,E(r));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("vue"),A=require("../../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const _=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),q=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),i=require("zrender"),B=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},M=B(k);var N=Object.defineProperty,X=Object.getOwnPropertyDescriptor,f=(t,r,e,o)=>{for(var d=o>1?void 0:o?X(r,e):r,a=t.length-1,w;a>=0;a--)(w=t[a])&&(d=(o?w(r,e,d):w(d))||d);return o&&d&&N(r,e,d),d};exports.default=class extends M.default{constructor(){super(...arguments),this.sceneIns=Object.freeze(null),this.drawGroup=Object.freeze(null),this.drawContainer=Object.freeze(null),this.headData=Object.freeze([{name:"-I"},{name:"aVR"},{name:"-II"},{name:"-aVF"},{name:"-III"},{name:"aVL"},{name:"I"},{name:"-aVR"},{name:"II"},{name:"aVF"},{name:"III"},{name:"-aVL"},{name:"I"}]),this.horizonData=Object.freeze([{name:"V1"},{name:"V2"},{name:"V3"},{name:"V4"},{name:"V5"},{name:"V6"},{name:"-V1"},{name:"-V2"},{name:"-V3"},{name:"-V4"},{name:"-V5"},{name:"-V6"},{name:"V1"}])}watchWidth(){this.repaint()}watchHeight(){this.repaint()}destroyed(){var t;try{(t=this.sceneIns)==null||t.dispose()}catch(r){}}created(){this.initConfig()}mounted(){this.init()}repaint(){var t,r,e;console.log("his.drawContainer!.clientWidth",this.drawContainer.clientWidth),(t=this.sceneIns)==null||t.clear(),(r=this.sceneIns)==null||r.resize({width:0,height:0}),(e=this.sceneIns)==null||e.resize({width:this.drawContainer.clientWidth,height:this.drawContainer.clientHeight}),this.drawGraphic()}initConfig(){this.drawGroup=new i.Group({name:"drawGroup"})}init(){this.initWaveFormPeer(),this.drawGraphic()}initWaveFormPeer(){this.drawContainer=document.getElementById("power-histogram-container"),this.sceneIns=i.init(this.drawContainer,{width:this.drawContainer.clientWidth,height:this.drawContainer.clientHeight,devicePixelRatio:2})}drawGraphic(){var V,G,W,b,z,x;(V=this.drawGroup)!=null&&V.childCount()&&((G=this.sceneIns)==null||G.remove(this.drawGroup),this.drawGroup.removeAll()),console.log("this.powerHistogramInfo",this.powerHistogramInfo);const t=this.headData.map((m,s)=>{var n,c;return l(p({},m),{data:(((n=this.powerHistogramInfo)==null?void 0:n.Data1[s])||0)*+(((c=this.powerHistogramInfo)==null?void 0:c.Threshold)||0)/10})}),r=this.horizonData.map((m,s)=>{var n,c;return l(p({},m),{data:(((n=this.powerHistogramInfo)==null?void 0:n.Data2[s])||0)*+(((c=this.powerHistogramInfo)==null?void 0:c.Threshold)||0)/10})}),e=20,o=14,d=e*2*t.length-e,a=280,w=100,y=this.drawContainer.clientHeight*.5,u=this.drawContainer.clientWidth*.5-d*.5;let h=y-a-w/2-o-e/2;const v=i.util.createCanvas().getContext("2d"),g={lineWidth:1,stroke:"#000",fill:"transparent"},I={fontSize:o,fontFamily:"Arial"};let C=t;(W=this.drawGroup)==null||W.add(new i.Line({cursor:"",shape:{x1:0,y1:y,x2:this.drawContainer.clientWidth,y2:y},style:g}));for(let m=1;m<=2;m++)m===2&&(C=r,h=y+w/2+e/2+o),(b=this.drawGroup)==null||b.add(new i.Text({x:u-o,y:h+a/4.5,style:l(p({},I),{text:`\u5F02
2
+ \u5E38`})})),(z=this.drawGroup)==null||z.add(new i.Text({x:u-o,y:h+a/1.5,style:l(p({},I),{text:`\u6B63
3
+ \u5E38`})})),C.forEach((s,n)=>{var c,H,F,P,j;(c=this.drawGroup)==null||c.add(new i.Rect({cursor:"",shape:{x:u+n*e*2,y:h,width:e,height:a},style:g})),(H=this.drawGroup)==null||H.add(new i.Line({cursor:"",shape:{x1:u+n*e*2,y1:h+a/2,x2:u+n*e*2+e,y2:h+a/2},style:l(p({},g),{stroke:"#FF8181"})})),(F=this.drawGroup)==null||F.add(new i.Rect({cursor:"",shape:{x:u+n*e*2,y:h+a,width:e,height:-(s.data>a?a:s.data)},style:{fill:s.data>a/2?"#FF0000":"#80FF80"}})),(P=this.drawGroup)==null||P.add(new i.Circle({cursor:"",shape:{r:e/4,cx:u+n*e*2+e/2,cy:h-e/2},style:l(p({},g),{fill:s.data>a/2?"#FF0000":"#fff"})})),(j=this.drawGroup)==null||j.add(new i.Text({x:u+n*e*2+e/2-((v==null?void 0:v.measureText(s.name).width)||0)/2,y:h+a+o,style:l(p({},I),{text:s.name,verticalAlign:"middle",fontSize:13})}))});(x=this.sceneIns)==null||x.add(this.drawGroup)}};f([_.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"width",2);f([_.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"height",2);f([_.Prop({required:!0})],exports.default.prototype,"powerHistogramInfo",2);f([q.Watch("width")],exports.default.prototype,"watchWidth",1);f([q.Watch("height")],exports.default.prototype,"watchHeight",1);exports.default=f([A.default({name:"PowerHistogram"})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var i=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{style:{width:`${t.width}px`,height:`${t.height}px`},attrs:{id:"power-histogram"}},[e("div",{attrs:{id:"power-histogram-container"}}),t._m(0)])},a=[function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{attrs:{id:"power-histogram-pic"}},[e("div",{staticClass:"heartImg-img"}),e("div",{staticClass:"heartImg-section-img"})])}];exports.render=i;exports.staticRenderFns=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index2.js"),t=require("@costy-plus/utils"),s=t.withInstall(e.default);exports.default=s;
@@ -0,0 +1,6 @@
1
+ import MethodsMinix from '../FCGWave/method';
2
+ declare const FCGWave_base: import("vue-class-component/lib/declarations").VueClass<MethodsMinix>;
3
+ declare class FCGWave extends FCGWave_base {
4
+ }
5
+ declare const _sfc_main: typeof FCGWave;
6
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const d=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const a=require("./components/LeadPower12.js"),l=require("./components/PowerHistogram.js"),m=require("./components/And2V5LeadPower.js"),c=require("./method.js");var p=Object.defineProperty,i=Object.getOwnPropertyDescriptor,v=(u,o,s,r)=>{for(var e=r>1?void 0:r?i(o,s):o,t=u.length-1,n;t>=0;t--)(n=u[t])&&(e=(r?n(o,s,e):n(e))||e);return r&&e&&p(o,s,e),e};exports.default=class extends d.mixins(c.default){};exports.default=v([d.default({name:"FCGWave",components:{LeadPower12:a.default,PowerHistogram:l.default,And2V5LeadPower:m.default}})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{style:{width:`${e.width}px`,height:`${e.height}px`},attrs:{id:"fcg-wave-form-main"}},[e.analysisMode===e.FcgAnalysisMode.LeadPowerSpectrumFor12?i("LeadPower12",e._g({attrs:{width:e.width,height:e.height,"grid-config":e.gridConfig,"lead-power12-info":e.leadPower12Info,gain:e.gain}},e.$listeners)):e.analysisMode===e.FcgAnalysisMode.PowerHistogram?i("PowerHistogram",{attrs:{width:e.width,height:e.height,"power-histogram-info":e.powerHistogramInfo}}):e._e(),e.analysisMode===e.FcgAnalysisMode.PowerIIV5?i("And2V5LeadPower",e._g({attrs:{width:e.width,height:e.height,"grid-config":e.gridConfig,"power-i-i-v5-info":e.powerIIV5Info,gain:e.gain}},e.$listeners)):e._e()],1)},o=[];exports.render=t;exports.staticRenderFns=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./index.vue_vue_type_script_lang.js"),t=require("./index.vue_vue_type_template_lang.js"),_=require("../../_virtual/vueComponentNormalizer.js"),n={};var l=_.default(u.default,t.render,t.staticRenderFns,!1,r,null,null,null);function r(s){for(let e in n)this[e]=n[e]}const o=function(){return l.exports}();exports.default=o;
@@ -0,0 +1,49 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import { FcgAnalysisMode, FcgClass } from '@costy-plus/utils';
3
+ export default class Methods extends Vue {
4
+ protected width: number;
5
+ protected height: number;
6
+ protected gridConfig: MXGridConfig;
7
+ protected analysisMode: FcgAnalysisMode;
8
+ protected formatFcgData: FcgClass | null;
9
+ protected gain: {
10
+ value: number;
11
+ label: string;
12
+ };
13
+ protected leadConfig: MXLeadConfig;
14
+ /** 获取 12导功率谱 */
15
+ protected get leadPower12Info(): {
16
+ config: {
17
+ girdCell: number;
18
+ XAxisLen: number;
19
+ YAxisH: number;
20
+ unitHz: number;
21
+ modulus_figPower: number;
22
+ dRate_Y: number;
23
+ scale: number;
24
+ } | undefined;
25
+ dataInfo: any;
26
+ };
27
+ /** 获取 功率谱直方图 */
28
+ protected get powerHistogramInfo(): any;
29
+ /** 获取 II和V5导功率谱 */
30
+ protected get powerIIV5Info(): {
31
+ config: {
32
+ girdCell: number;
33
+ XAxisLen: number;
34
+ YAxisH: number;
35
+ unitHz: number;
36
+ modulus_figPower: number;
37
+ dRate_Y: number;
38
+ scale: number;
39
+ } | undefined;
40
+ dataInfo: {
41
+ AutoPowerSpectrum: any[];
42
+ Phase: any;
43
+ RF: any;
44
+ CrossCorrelation: any;
45
+ ImpluseResponse: any;
46
+ };
47
+ };
48
+ protected FcgAnalysisMode: typeof FcgAnalysisMode;
49
+ }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("vue"),P=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const u=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),g=require("@costy-plus/utils"),h=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},D=h(y);var F=Object.defineProperty,_=Object.getOwnPropertyDescriptor,a=(e,t,o,s)=>{for(var r=s>1?void 0:s?_(t,o):t,n=e.length-1,l;n>=0;n--)(l=e[n])&&(r=(s?l(t,o,r):l(r))||r);return s&&r&&F(t,o,r),r};exports.default=class extends D.default{constructor(){super(...arguments),this.FcgAnalysisMode=g.FcgAnalysisMode}get leadPower12Info(){var e,t,o;return{config:(e=this.formatFcgData)==null?void 0:e.leadPower12Config,dataInfo:(o=(t=this.formatFcgData)==null?void 0:t.processedData.otherParams.AnalyseValue)==null?void 0:o.PowerSpectrum}}get powerHistogramInfo(){var e,t;return(t=(e=this.formatFcgData)==null?void 0:e.processedData.otherParams.AnalyseValue)==null?void 0:t.HistogramValue}get powerIIV5Info(){var e,t,o,s,r,n,l,p,d,i,c,m,f;return{config:(e=this.formatFcgData)==null?void 0:e.leadPowerIIAnfVIConfig,dataInfo:{AutoPowerSpectrum:[(o=(t=this.formatFcgData)==null?void 0:t.processedData.otherParams.AnalyseValue)==null?void 0:o.PowerSpectrum[1],(r=(s=this.formatFcgData)==null?void 0:s.processedData.otherParams.AnalyseValue)==null?void 0:r.PowerSpectrum[10]],Phase:(l=(n=this.formatFcgData)==null?void 0:n.processedData.otherParams.AnalyseValue)==null?void 0:l.Phase,RF:(d=(p=this.formatFcgData)==null?void 0:p.processedData.otherParams.AnalyseValue)==null?void 0:d.RF,CrossCorrelation:(c=(i=this.formatFcgData)==null?void 0:i.processedData.otherParams.AnalyseValue)==null?void 0:c.CrossCorrelation,ImpluseResponse:(f=(m=this.formatFcgData)==null?void 0:m.processedData.otherParams.AnalyseValue)==null?void 0:f.ImpluseResponse}}}};a([u.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"width",2);a([u.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"height",2);a([u.Prop({required:!0})],exports.default.prototype,"gridConfig",2);a([u.Prop({default:g.FcgAnalysisMode.LeadPowerSpectrumFor12})],exports.default.prototype,"analysisMode",2);a([u.Prop({required:!0})],exports.default.prototype,"formatFcgData",2);a([u.Prop({required:!0})],exports.default.prototype,"gain",2);a([u.Prop({default:()=>({lineColor:"#7875F8",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);exports.default=a([P.default({name:"Methods"})],exports.default);
@@ -0,0 +1,43 @@
1
+ #fcg-wave-form-main #lead-power12 {
2
+ position: relative;
3
+ }
4
+ #fcg-wave-form-main #lead-power12 #power12-container {
5
+ position: absolute;
6
+ top: 0;
7
+ left: 0;
8
+ }
9
+ #fcg-wave-form-main #and2v5-leadpower {
10
+ position: relative;
11
+ }
12
+ #fcg-wave-form-main #and2v5-leadpower #and2v5-leadpower-container {
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ }
17
+ #fcg-wave-form-main #power-histogram {
18
+ display: flex;
19
+ flex-wrap: nowrap;
20
+ }
21
+ #fcg-wave-form-main #power-histogram-container {
22
+ flex: 2;
23
+ }
24
+ #fcg-wave-form-main #power-histogram-pic {
25
+ flex: 1;
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: center;
29
+ justify-content: center;
30
+ }
31
+ #fcg-wave-form-main #power-histogram-pic .heartImg-img {
32
+ width: 100%;
33
+ height: 40%;
34
+ background: url(../../../static/images/heart.jpg) no-repeat;
35
+ background-size: contain;
36
+ }
37
+ #fcg-wave-form-main #power-histogram-pic .heartImg-section-img {
38
+ width: 100%;
39
+ height: 40%;
40
+ padding-top: 10%;
41
+ background: url(../../../static/images/heartSection.jpg) no-repeat;
42
+ background-size: contain;
43
+ }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./Detail.vue_vue_type_script_lang.js"),t=require("./Detail.vue_vue_type_template_lang.js"),u=require("../../../_virtual/vueComponentNormalizer.js"),l={};var _=u.default(n.default,t.render,t.staticRenderFns,!1,r,null,null,null);function r(a){for(let e in l)this[e]=l[e]}const o=function(){return _.exports}();exports.default=o;
@@ -0,0 +1 @@
1
+ "use strict";var G=Object.defineProperty,H=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var L=(t,e,i)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,R=(t,e)=>{for(var i in e||(e={}))q.call(e,i)&&L(t,i,e[i]);if(F)for(var i of F(e))Q.call(e,i)&&L(t,i,e[i]);return t},x=(t,e)=>H(t,P(e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("element-ui/lib/theme-chalk/row.css");require("element-ui/lib/theme-chalk/col.css");require("element-ui/lib/theme-chalk/input-number.css");const j=require("vue"),N=require("../../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const u=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),g=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),p=require("@costy-plus/utils"),h=require("zrender"),T=require("../../BackgroundGrid/index2.js"),c=require("element-ui"),O=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},A=O(j);var M=Object.defineProperty,E=Object.getOwnPropertyDescriptor,r=(t,e,i,o)=>{for(var s=o>1?void 0:o?E(e,i):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(s=(o?a(e,i,s):a(s))||s);return o&&s&&M(e,i,s),s};exports.default=class extends A.default{constructor(){super(...arguments),this.AssistCtx=Object.freeze(null),this.AssistCanvas=Object.freeze(null),this.sceneIns=Object.freeze(null),this.waveFormGroup=Object.freeze(null),this.splitLineGroup=Object.freeze(null),this.rows=Object.freeze(3),this.columns=Object.freeze(4),this.splitLineW=Object.freeze(5),this.splitBlockHeight=0,this.splitBlockWidth=0,this.tableHeaderList=[],this.notchInfoQRS=[],this.notchInfoToatolQRS={col0:0,col1:0,col2:0}}get tableWH(){return{width:180,height:this.height}}get canvasContainer(){return{width:this.width-this.tableWH.width-20,height:this.height}}get tableItemH(){return(this.height-4)/(this.tableHeaderList.length+2)}watchHeardBeat(t){this.notchInfoQRS=(t==null?void 0:t.NotchInfoQRS)||[],this.drawWaveForm(),console.log("heardBeat"),this.calcNotchInfoToatolQRS()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchFormatData(){this.repaint()}repaint(){var t,e;this.calcConfig(),(t=this.sceneIns)==null||t.clear(),(e=this.sceneIns)==null||e.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.combinationDrawing()}destroyed(){var t;(t=this.sceneIns)==null||t.dispose()}created(){this.initConfig()}initConfig(){var t,e;this.calcConfig(),this.notchInfoQRS=h.util.clone(((t=this.heardBeat)==null?void 0:t.NotchInfoQRS)||[]),this.calcNotchInfoToatolQRS(),this.splitLineGroup=new h.Group({name:"splitLine"}),this.waveFormGroup=new h.Group({name:"waveForm"}),this.tableHeaderList=((e=this.formatData)==null?void 0:e.processedData.originData.Data.map((i,o)=>p.LeadNameTexts[o]))||[]}mounted(){this.initWaveFormPeer(),this.combinationDrawing()}combinationDrawing(){this.drawSplitBlock(),this.drawWaveForm()}calcNotchInfoToatolQRS(){let t=0,e=0,i=0;this.notchInfoQRS.forEach(o=>{t+=o[0],e+=o[1],i+=o[2]}),this.notchInfoToatolQRS.col0=t,this.notchInfoToatolQRS.col1=e,this.notchInfoToatolQRS.col2=i,this.$emit("notifyModifyHeardBeat",x(R({},this.heardBeat),{NotchInfoQRS:this.notchInfoQRS}))}handleChange(t,e,i){this.notchInfoQRS[e].splice(i,1,t||0),this.calcNotchInfoToatolQRS()}calcConfig(){this.splitBlockHeight=(this.canvasContainer.height-this.splitLineW*(this.rows-1)-this.gridConfig.lineWidth*this.rows*2)/this.rows,this.splitBlockWidth=(this.canvasContainer.width-this.splitLineW*(this.columns-1)-this.gridConfig.lineWidth*this.columns*2)/this.columns}initWaveFormPeer(){const t=document.getElementById("detail-from-box");this.sceneIns=h.init(t,{width:this.canvasContainer.width,height:this.canvasContainer.height,devicePixelRatio:2});const e=document.getElementById("MXDetail_Grid");this.AssistCanvas=e,this.AssistCtx=e.getContext("2d")}drawSplitBlock(){var i,o,s,n,a;(i=this.splitLineGroup)!=null&&i.childCount()&&((o=this.sceneIns)==null||o.remove(this.splitLineGroup),this.splitLineGroup.removeAll());let t=0,e=0;for(let l=1;l<=this.rows;l++){e=(this.splitBlockHeight+this.splitLineW)*(l-1)+this.gridConfig.lineWidth;for(let d=1;d<=this.columns;d++)t=(this.splitBlockWidth+this.splitLineW)*(d-1)+this.gridConfig.lineWidth,(s=this.splitLineGroup)==null||s.add(new h.Rect({name:`${l}_${d}`,cursor:"",shape:{x:t,y:e,width:this.splitBlockWidth,height:this.splitBlockHeight},style:{stroke:this.gridConfig.bigCellColor,lineWidth:this.gridConfig.lineWidth,fill:"transparent"}})),(n=this.splitLineGroup)==null||n.add(new h.Image({name:`${l}_${d}`,cursor:"",style:{image:this.AssistCanvas,x:t,y:e,width:this.splitBlockWidth,height:this.splitBlockHeight,sx:0,sy:0,sWidth:this.splitBlockWidth,sHeight:this.splitBlockHeight}}))}(a=this.sceneIns)==null||a.add(this.splitLineGroup)}drawWaveForm(){var l,d,v,C,y,W,b,S,B,I,D;(l=this.waveFormGroup)!=null&&l.childCount()&&((d=this.sceneIns)==null||d.remove(this.waveFormGroup),this.waveFormGroup.removeAll());let t=0,e=0;const i=((v=this.formatData)==null?void 0:v.processedData.originData.Data)||[],o=p.getStepForSpeed(100,this.gridConfig.cellMg,((C=this.formatData)==null?void 0:C.processedData.otherParams.SampleRate)||1);let s=0,n=[],a=0;for(let m=1;m<=this.rows;m++){e=(this.splitBlockHeight+this.splitLineW)*(m-1)+this.gridConfig.lineWidth;for(let f=1;f<=this.columns;f++)t=(this.splitBlockWidth+this.splitLineW)*(f-1)+this.gridConfig.lineWidth,s=f+(m-1)*this.columns-1,n=(i[s]||[]).slice(((y=this.heardBeat)==null?void 0:y.QRSstart)||0,((W=this.heardBeat)==null?void 0:W.QRSend)||0),a=n.length*o,(b=this.waveFormGroup)==null||b.add(new h.Polyline({cursor:"",name:p.LeadNameTexts[s],shape:{points:n.map((w,z)=>{var _,k;return w=p.getActualY(((_=this.formatData)==null?void 0:_.processedData.otherParams.Sensitivity)||1,w,((k=this.formatData)==null?void 0:k.qrsSens)||1),[t+this.splitBlockWidth/2-a/2+z*o,e+this.splitBlockHeight/2-w]})},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}})),(S=this.waveFormGroup)==null||S.add(new h.Text({cursor:"",style:{x:t+this.leadConfig.fontSize*1,y:e+this.leadConfig.fontSize*.5,text:p.LeadNameTexts[s],fontSize:this.leadConfig.fontSize,fontFamily:this.leadConfig.fontFamily}})),(I=this.waveFormGroup)==null||I.add(new h.Text({cursor:"",style:{x:t+this.leadConfig.fontSize*1,y:e+this.splitBlockHeight-this.leadConfig.fontSize*1.5,text:`${(B=this.formatData)==null?void 0:B.qrsGain}mm/Mv 100mm/s`,fontSize:this.leadConfig.fontSize,fontFamily:this.leadConfig.fontFamily}}))}(D=this.sceneIns)==null||D.add(this.waveFormGroup)}};r([u.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"width",2);r([u.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"height",2);r([u.Prop({required:!0})],exports.default.prototype,"gridConfig",2);r([u.Prop({required:!0})],exports.default.prototype,"formatData",2);r([u.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);r([u.Prop({required:!0})],exports.default.prototype,"heardBeat",2);r([g.Watch("heardBeat",{deep:!0})],exports.default.prototype,"watchHeardBeat",1);r([g.Watch("width")],exports.default.prototype,"watchWidth",1);r([g.Watch("height")],exports.default.prototype,"watchHeight",1);r([g.Watch("formatData",{deep:!0})],exports.default.prototype,"watchFormatData",1);exports.default=r([N.default({name:"Detail",components:{MXBackgroundGrid:T.default,[c.Row.name]:c.Row,[c.Col.name]:c.Col,[c.InputNumber.name]:c.InputNumber}})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{style:{width:`${t.width}px`,height:`${t.height}px`},attrs:{id:"detail-main"}},[e("MXBackgroundGrid",{attrs:{width:1080,height:1080,"grid-config":t.gridConfig,"layer-id":"MXDetail_Grid"}}),e("div",{attrs:{id:"detail-from-box"}}),t.notchInfoQRS.length?e("div",{staticClass:"detail-table",style:{height:t.height+"px"}},[e("el-row",{style:{height:t.tableItemH+"px"},attrs:{type:"flex"}},[e("el-col",{attrs:{span:6}},[t._v("#")]),e("el-col",{attrs:{span:6}},[t._v("\u5207\u8FF9")]),e("el-col",{attrs:{span:6}},[t._v("\u626D\u632B")]),e("el-col",{attrs:{span:6}},[t._v("\u987F\u7ED3")])],1),t._l(t.tableHeaderList,function(n,a){return[e("el-row",{key:n,style:{height:t.tableItemH+"px"},attrs:{type:"flex"}},[e("el-col",{attrs:{span:6}},[t._v(" "+t._s(n)+" ")]),e("el-col",{attrs:{span:6}},[e("el-input-number",{attrs:{value:t.notchInfoQRS[a][0],controls:!1},on:{change:function(l){return t.handleChange(l,a,0)}}})],1),e("el-col",{attrs:{span:6}},[e("el-input-number",{attrs:{value:t.notchInfoQRS[a][1],controls:!1},on:{change:function(l){return t.handleChange(l,a,1)}}})],1),e("el-col",{attrs:{span:6}},[e("el-input-number",{attrs:{value:t.notchInfoQRS[a][2],controls:!1},on:{change:function(l){return t.handleChange(l,a,2)}}})],1)],1)]}),e("el-row",{style:{height:t.tableItemH+"px"},attrs:{type:"flex"}},[e("el-col",{attrs:{span:6}},[t._v("\u5408\u8BA1")]),e("el-col",{attrs:{span:6}},[t._v(t._s(t.notchInfoToatolQRS.col0))]),e("el-col",{attrs:{span:6}},[t._v(t._s(t.notchInfoToatolQRS.col1))]),e("el-col",{attrs:{span:6}},[t._v(t._s(t.notchInfoToatolQRS.col2))])],1)],2):t._e()],1)},s=[];exports.render=o;exports.staticRenderFns=s;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./Routine.vue_vue_type_script_lang.js"),t=require("./Routine.vue_vue_type_template_lang.js"),o=require("../../../_virtual/vueComponentNormalizer.js"),n={};var _=o.default(u.default,t.render,t.staticRenderFns,!1,l,null,null,null);function l(i){for(let e in n)this[e]=n[e]}const r=function(){return _.exports}();exports.default=r;