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,151 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ /* eslint-disable camelcase */
3
+ /** 网格配置 */
4
+ interface GridConfig {
5
+ /** 背景色*/
6
+ bgColor: string;
7
+ /** 网格大格颜色*/
8
+ bigCellColor: string;
9
+ /** 网格小格颜色*/
10
+ smallCellColor: string;
11
+ /** 小格子之间距离 */
12
+ cellMg: number;
13
+ /** 线宽 */
14
+ lineWidth: number;
15
+ }
16
+
17
+ type MXGridConfig = GridConfig;
18
+
19
+ /** 导联配置 */
20
+ interface LeadConfig {
21
+ /** 画线颜色 */
22
+ lineColor: string;
23
+ /** 线宽 */
24
+ lineWidth: number;
25
+ /** 导联名称 字体 */
26
+ fontFamily: string;
27
+ /** 导联名称 font size */
28
+ fontSize: number;
29
+ }
30
+
31
+ type MXLeadConfig = LeadConfig;
32
+
33
+ interface EcgReviewSetting {
34
+ /** 心电回放显示设置表主键 */
35
+ pk_ecg_review_setting?: string;
36
+ /** 模式 */
37
+ mode12: Mode12;
38
+ mode12_isSync: IsSync;
39
+ mode15: Mode15;
40
+ mode15_isSync: IsSync;
41
+ mode16: Mode16;
42
+ mode16_isSync: IsSync;
43
+ mode18: Mode18;
44
+ mode18_isSync: IsSync;
45
+ /** 波形显示长度 */
46
+ ecgareawidth: '0' | '1';
47
+ /** 分析模式 */
48
+ analyModeSelected: '0' | '1';
49
+ /** 心搏信息默认选中项 */
50
+ heartbeatInfoSelected: HeartbeatInfoSelected;
51
+ /** QTd算法公式 */
52
+ QTd_algorithm: string,
53
+ /** 房颤启动-P电轴显示内容 0:-;1:不变 */
54
+ fangchan_p_axis: '0' | '1';
55
+ /** 房颤启动-QT/QTc显示内容 0:-;1:不变 */
56
+ fangchan_qtqtc: '0' | '1';
57
+ /** 房颤启动-心房率显示内容 0:-;其他值为:约350 */
58
+ fangchan_atrium: string;
59
+ /** 时间戳 */
60
+ ts?: string;
61
+ /** 删除标志 */
62
+ dr?: number;
63
+ /** 自定义1节律 key: userdefinexxx_rhythmname */
64
+ [key: string]: unknown;
65
+ }
66
+
67
+ interface ConventionalECGConfig {
68
+ /** 导联配置相关 */
69
+ ecgReviewSetting?: EcgReviewSetting;
70
+ }
71
+
72
+ interface LeadHeadConfig {
73
+ /** 导联宽度 */
74
+ leadHedeWidth: number;
75
+ /** 导联颜色 */
76
+ leadHedeColor: string;
77
+ /** 导联描线宽度 */
78
+ leadHedeLineWidth: number;
79
+ }
80
+
81
+ /** 增益 */
82
+ interface Sens {
83
+ name: string;
84
+ value: number;
85
+ }
86
+
87
+ /** 走纸 */
88
+ interface Speed {
89
+ name: string;
90
+ value: number;
91
+ }
92
+
93
+ /** 视图模式 */
94
+ interface LeadModel {
95
+ /** + N 导联 */
96
+ add: number;
97
+ column: number;
98
+ line: number;
99
+ name: string;
100
+ type: string | number;
101
+ /** 是否连续 */
102
+ isContinuous: boolean;
103
+ }
104
+
105
+ /** 数据 最大 最小点 */
106
+ interface HighestAndLowestPoint {
107
+ Data: {
108
+ maxPoints: number;
109
+ minPoints: number;
110
+ },
111
+ ComplexData: {
112
+ maxPoints: number;
113
+ minPoints: number;
114
+ },
115
+ }
116
+
117
+ type MXConventionalECGConfig = ConventionalECGConfig;
118
+
119
+ /** 显示 心搏 配置 */
120
+ interface HeartFight {
121
+ isShow: boolean;
122
+ /** 是否是选中心搏模式 */
123
+ mode: boolean;
124
+ /** 默认选中哪个心搏 */
125
+ defaultSelect: number;
126
+ heartrate: boolean;
127
+ interval: boolean;
128
+ qrstCompany: boolean;
129
+ telectricalaxis: boolean;
130
+ }
131
+
132
+ /** 标尺配置 */
133
+ interface RulerConfig {
134
+ isShow: boolean;
135
+ }
136
+
137
+ /** 背景网格参数 */
138
+ declare class MXECGWaveComponents extends MxUIComponents {
139
+ width: number;
140
+ height: number;
141
+ gridConfig: MXGridConfig;
142
+ layerId: string;
143
+ cellPoints: number;
144
+ conventionalECGConfig: MXConventionalECGConfig;
145
+ leadHeadConfig: LeadHeadConfig;
146
+ formatEcgData: Record<any, any>;
147
+ leadModel: LeadModel;
148
+ leadConfig: MXLeadConfig;
149
+ longLeadConfig?: number[];
150
+ HeartFight: HeartFight;
151
+ }
@@ -0,0 +1,10 @@
1
+ interface LeadPower12Config {
2
+ /** C++ 一个大网格 25;BS 大网格20 */
3
+ girdCell: number;
4
+ XAxisLen: number;
5
+ YAxisH: number;
6
+ unitHz: number;
7
+ modulus_figPower: number;
8
+ dRate_Y: number;
9
+ scale: number;
10
+ }
@@ -0,0 +1,14 @@
1
+ interface MXMeasuringRulerConfig {
2
+ /** 线宽 */
3
+ lineW: number;
4
+ /** 颜色 */
5
+ stroke: string;
6
+ /** 园 线宽 */
7
+ circleLineW: number;
8
+ /** 园 颜色 */
9
+ circleLinestroke: string;
10
+ /** 文案颜色 */
11
+ textColor: string;
12
+ /** 文案 fontSize */
13
+ textFontSize: number;
14
+ }
@@ -0,0 +1,14 @@
1
+ interface MXParallelRulerConfig {
2
+ /** 线宽 */
3
+ lineW: number;
4
+ /** 颜色 */
5
+ stroke: string;
6
+ /** 园 线宽 */
7
+ circleLineW: number;
8
+ /** 园 颜色 */
9
+ circleLinestroke: string;
10
+ /** 文案颜色 */
11
+ textColor: string;
12
+ /** 文案 fontSize */
13
+ textFontSize: number;
14
+ }
@@ -0,0 +1,3 @@
1
+ declare class MxUIComponents extends Vue {
2
+ static install (vue: typeof Vue): void
3
+ }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};exports.commonjsGlobal=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function p(r,t,d,u,i,a,f,l){var e=typeof r=="function"?r.options:r;t&&(e.render=t,e.staticRenderFns=d,e._compiled=!0),u&&(e.functional=!0),a&&(e._scopeId="data-v-"+a);var o;if(f?(o=function(n){n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!n&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(n=__VUE_SSR_CONTEXT__),i&&i.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(f)},e._ssrRegister=o):i&&(o=l?function(){i.call(this,(e.functional?this.parent:this).$root.$options.shadowRoot)}:i),o)if(e.functional){e._injectStyles=o;var h=e.render;e.render=function(v,_){return o.call(_),h(v,_)}}else{var s=e.beforeCreate;e.beforeCreate=s?[].concat(s,o):[o]}return{exports:r,options:e}}exports.default=p;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={exports:{}};exports.vuescrollNative=e;
@@ -0,0 +1,5 @@
1
+ export * from './src/index';
2
+ declare const _default: {
3
+ install: (app: any) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./src/index.js"),s=require("./src/Text/index.js"),i=require("./src/BackgroundGrid/index.js"),d=require("./src/ECGWave/index.js"),t=require("./src/MeasuringRuler/index.js"),a=require("./src/ParallelRuler/index.js"),u=require("./src/EnlargeWave/index.js"),l=require("./src/FCGWave/index.js"),o=require("./src/HFECGWave/index.js"),c={install:r=>{for(const n in e)r.component(e[n].name,e[n])}};exports.MXText=s.default;exports.MXBackgroundGrid=i.default;exports.MXECGWaveComponents=d.default;exports.MXMeasuringRuler=t.default;exports.MXParallelRuler=a.default;exports.MXEnlargeWave=u.default;exports.MXFCGWaveComponents=l.default;exports.MXHFECGWaveComponents=o.default;exports.default=c;
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const O=require("vue"),_=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},s=_(O);/**
2
+ * vue-class-component v7.2.6
3
+ * (c) 2015-present Evan You
4
+ * @license MIT
5
+ */function f(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(t){return typeof t}:f=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return w(e)||P(e)||j()}function w(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function P(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function j(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function M(){return typeof Reflect!="undefined"&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function S(e,t){d(e,t),Object.getOwnPropertyNames(t.prototype).forEach(function(r){d(e.prototype,t.prototype,r)}),Object.getOwnPropertyNames(t).forEach(function(r){d(e,t,r)})}function d(e,t,r){var n=r?Reflect.getOwnMetadataKeys(t,r):Reflect.getOwnMetadataKeys(t);n.forEach(function(o){var a=r?Reflect.getOwnMetadata(o,t,r):Reflect.getOwnMetadata(o,t);r?Reflect.defineMetadata(o,a,e,r):Reflect.defineMetadata(o,a,e)})}var E={__proto__:[]},x=E instanceof Array;function D(e){return function(t,r,n){var o=typeof t=="function"?t:t.constructor;o.__decorators__||(o.__decorators__=[]),typeof n!="number"&&(n=void 0),o.__decorators__.push(function(a){return e(a,r,n)})}}function A(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default.extend({mixins:t})}function N(e){var t=f(e);return e==null||t!=="object"&&t!=="function"}function y(e){typeof console!="undefined"&&console.warn("[vue-class-component] "+e)}function R(e,t){var r=t.prototype._init;t.prototype._init=function(){var a=this,u=Object.getOwnPropertyNames(e);if(e.$options.props)for(var i in e.$options.props)e.hasOwnProperty(i)||u.push(i);u.forEach(function(c){Object.defineProperty(a,c,{get:function(){return e[c]},set:function(b){e[c]=b},configurable:!0})})};var n=new t;t.prototype._init=r;var o={};return Object.keys(n).forEach(function(a){n[a]!==void 0&&(o[a]=n[a])}),process.env.NODE_ENV!=="production"&&!(t.prototype instanceof s.default)&&Object.keys(o).length>0&&y("Component class must inherit Vue or its descendant class when class property is used."),o}var p=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function v(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach(function(i){if(i!=="constructor"){if(p.indexOf(i)>-1){t[i]=r[i];return}var c=Object.getOwnPropertyDescriptor(r,i);c.value!==void 0?typeof c.value=="function"?(t.methods||(t.methods={}))[i]=c.value:(t.mixins||(t.mixins=[])).push({data:function(){return h({},i,c.value)}}):(c.get||c.set)&&((t.computed||(t.computed={}))[i]={get:c.get,set:c.set})}}),(t.mixins||(t.mixins=[])).push({data:function(){return R(this,e)}});var n=e.__decorators__;n&&(n.forEach(function(i){return i(t)}),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),a=o instanceof s.default?o.constructor:s.default,u=a.extend(t);return H(u,e,a),M()&&S(u,e),u}var I=["cid","super","options","superOptions","extendOptions","sealedOptions","component","directive","filter"],V={prototype:!0,arguments:!0,callee:!0,caller:!0};function H(e,t,r){Object.getOwnPropertyNames(t).forEach(function(n){if(!V[n]){var o=Object.getOwnPropertyDescriptor(e,n);if(!(o&&!o.configurable)){var a=Object.getOwnPropertyDescriptor(t,n);if(!x){if(n==="cid")return;var u=Object.getOwnPropertyDescriptor(r,n);if(!N(a.value)&&u&&u.value===a.value)return}process.env.NODE_ENV!=="production"&&I.indexOf(n)>=0&&y("Static property name '".concat(n,"' declared on class '").concat(t.name,"' ")+"conflicts with reserved property name of Vue internal. It may cause unexpected behavior of the component. Consider renaming the property."),Object.defineProperty(e,n,a)}}})}function g(e){return typeof e=="function"?v(e):function(t){return v(t,e)}}g.registerHooks=function(t){p.push.apply(p,m(t))};exports.createDecorator=D;exports.default=g;exports.mixins=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../../../vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js"),u=require("../helpers/metadata.js");function c(e){return e===void 0&&(e={}),function(s,t){u.applyMetadata(e,s,t),r.createDecorator(function(a,o){(a.props||(a.props={}))[o]=e})(s,t)}}exports.Prop=c;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../../../vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");function o(e,c){c===void 0&&(c={});var r=c.deep,d=r===void 0?!1:r,u=c.immediate,i=u===void 0?!1:u;return l.createDecorator(function(t,s){typeof t.watch!="object"&&(t.watch=Object.create(null));var a=t.watch;typeof a[e]=="object"&&!Array.isArray(a[e])?a[e]=[a[e]]:typeof a[e]=="undefined"&&(a[e]=[]),a[e].push({handler:s,deep:d,immediate:i})})}exports.Watch=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var d=typeof Reflect!="undefined"&&typeof Reflect.getMetadata!="undefined";function r(e,a,f){if(d&&!Array.isArray(e)&&typeof e!="function"&&!e.hasOwnProperty("type")&&typeof e.type=="undefined"){var t=Reflect.getMetadata("design:type",a,f);t!==Object&&(e.type=t)}}exports.applyMetadata=r;
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Ve=require("../../../../../../_virtual/_commonjsHelpers.js"),ue=require("../../../../../../_virtual/vuescroll-native.js"),je=require("vue"),Xe=E=>E&&typeof E=="object"&&"default"in E?E:{default:E},Ye=Xe(je);(function(E,Fe){(function(z,k){E.exports=k(Ye.default)})(Ve.commonjsGlobal,function(z){z=z&&z.hasOwnProperty("default")?z.default:z;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},V=function(){function t(e,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),f=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},w=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}else return Array.from(t)};function U(){if(T())return!1;var t=navigator.userAgent.toLowerCase();return t.indexOf("msie")!==-1||t.indexOf("trident")!==-1||t.indexOf(" edge/")!==-1}var he=function(){if(T())return!1;var e=navigator.userAgent;return!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},T=function(){return z.prototype.$isServer},G=function(){function t(){L(this,t)}return V(t,[{key:"getEventObject",value:function(r){return this.touchObject?this.isTouch?r.touches:[r]:null}},{key:"getTouchObject",value:function(){if(T())return null;this.isTouch=!1;var r=navigator.userAgent,i=navigator.platform,n={};switch(n.touch="ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,n.nonDeskTouch=n.touch&&!/win32/i.test(i)||n.touch&&/win32/i.test(i)&&/mobile/i.test(r),n.eventType="onmousedown"in window&&!n.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||navigator.msMaxTouchPoints>0?"mstouchpoints":"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0?"touchpoints":"mouse",n.eventType){case"mouse":n.touchstart="mousedown",n.touchend="mouseup",n.touchmove="mousemove",n.touchenter="mouseenter",n.touchmove="mousemove",n.touchleave="mouseleave";break;case"touch":n.touchstart="touchstart",n.touchend="touchend",n.touchmove="touchmove",n.touchcancel="touchcancel",n.touchenter="touchstart",n.touchmove="touchmove",n.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":n.touchstart="MSPointerDown",n.touchend="MSPointerUp",n.touchmove="MSPointerMove",n.touchcancel="MSPointerCancel",n.touchenter="MSPointerDown",n.touchmove="MSPointerMove",n.touchleave="MSPointerUp";break;case"touchpoints":n.touchstart="pointerdown",n.touchend="pointerup",n.touchmove="pointermove",n.touchcancel="pointercancel",n.touchenter="pointerdown",n.touchmove="pointermove",n.touchleave="pointerup";break}return this.touchObject=n}}]),t}(),Z=function(){function t(){var e=this;L(this,t),this.originPixelRatio=this.getRatio(),this.lastPixelRatio=this.originPixelRatio,window.addEventListener("resize",function(){e.lastPixelRatio=e.getRatio()})}return V(t,[{key:"getRatio",value:function(){var r=0,i=window.screen,n=navigator.userAgent.toLowerCase();return window.devicePixelRatio!==void 0?r=window.devicePixelRatio:~n.indexOf("msie")?i.deviceXDPI&&i.logicalXDPI&&(r=i.deviceXDPI/i.logicalXDPI):window.outerWidth!==void 0&&window.innerWidth!==void 0&&(r=window.outerWidth/window.innerWidth),r&&(r=Math.round(r*100)),r}},{key:"getRatioBetweenPreAndCurrent",value:function(){return this.originPixelRatio/this.lastPixelRatio}}]),t}();function j(t,e,r){if(r&&M(e))return t;if(W(t))e=[],t.forEach(function(n,a){e[a]=j(n,e[a])});else if(t){if(!J(t))return t;e={};for(var i in t)e[i]=k(t[i])==="object"?j(t[i],e[i]):t[i]}return e}function O(t,e,r,i){if(i&&M(e))return t;if(e=e||{},W(t))!W(e)&&r&&(e=[]),W(e)&&t.forEach(function(a,s){e[s]=O(a,e[s],r,i)});else if(t)if(!J(t))r&&(e=t);else for(var n in t)k(t[n])==="object"?M(e[n])?e[n]=j(t[n],e[n],i):O(t[n],e[n],r,i):(M(e[n])||r)&&(e[n]=t[n]);return e}function de(t,e,r,i){!r[e]&&typeof r!="function"||(i=i||e,Object.defineProperty(t,e,{get:function(){return r[i]},configurable:!0}))}var $=void 0,_=void 0;function fe(){if(T())return 0;if(_||(_=new Z),$!==void 0)return $*_.getRatioBetweenPreAndCurrent();var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var r=document.createElement("div");r.style.width="100%",t.appendChild(r);var i=r.offsetWidth;return t.parentNode.removeChild(t),$=e-i,_||(_=new Z),$*_.getRatioBetweenPreAndCurrent()}function b(t,e,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"on";n=="on"?t.addEventListener(e,r,i):t.removeEventListener(e,r,i)}var D=function(e){console.warn("[vuescroll] "+e)};function K(t,e){var r=!1;if(!t||!e)return r;for(;t.parentNode!==e&&t.parentNode.nodeType!==9&&!t.parentNode._isVuescroll;)t=t.parentNode;return t.parentNode==e&&(r=!0),r}function ve(t){var e=document.documentElement.style,r;t.opera&&Object.prototype.toString.call(opera)==="[object Opera]"?r="presto":"MozAppearance"in e?r="gecko":"WebkitAppearance"in e?r="webkit":typeof navigator.cpuClass=="string"&&(r="trident");var i={trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[r];return i}function pe(t,e){if(T())return!1;var r="-"+ve(window)+"-"+e,i=document.createElement("div");return i.style[t]=r,i.style[t]==r?r:!1}function X(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=arguments[4];if(e&&e.length>1)return n?[].concat(w(r),w(e)):[].concat(w(e),w(r));e=e[0];var a=ge(e),s=a.ch,o=a.tag,l=a.isComponent;return l&&(e.data=O({attrs:e.componentOptions.propsData},e.data,!1,!0)),s=n?[].concat(w(r),w(s)):[].concat(w(s),w(r)),delete e.data.slot,t(o,O(i,e.data,!1,!0),s)}function ge(t){if(!t||t.length>1)return{};t=t[0]?t[0]:t;var e=!!t.componentOptions,r=void 0,i=void 0;return e?(r=t.componentOptions.children||[],i=t.componentOptions.tag):(r=t.children||[],i=t.tag),{isComponent:e,ch:r,tag:i}}function y(t){var e=t.$parent;return!e._isVuescrollRoot&&e&&(e=e.$parent),e}var W=function(e){return Array.isArray(e)},J=function(e){return Object.prototype.toString.call(e)=="[object Object]"},M=function(e){return typeof e=="undefined"};function x(t,e){var r=void 0;return(r=/(-?\d+(?:\.\d+?)?)%$/.exec(t))?(r=r[1]-0,r=e*r/100):r=t-0,r}function me(t,e){if(!(T()||document.getElementById(t))){var r=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),r.appendChild(i)}}function be(){{var t=`.__hidebar::-webkit-scrollbar {
2
+ width: 0;
3
+ height: 0;
4
+ }`;me("vuescroll-hide-ios-bar",t)}}var we={mounted:function(){A[this._uid]=this},beforeDestroy:function(){delete A[this._uid]},methods:{scrollTo:function(e,r,i){var n=e.x,a=e.y;(r===!0||typeof r=="undefined")&&(r=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(n,a,r,i)},scrollBy:function(e,r,i){var n=e.dx,a=n===void 0?0:n,s=e.dy,o=s===void 0?0:s,l=this.getPosition(),c=l.scrollLeft,u=c===void 0?0:c,h=l.scrollTop,d=h===void 0?0:h;a&&(u+=x(a,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),o&&(d+=x(o,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(u,d,r,i)},scrollIntoView:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.$el;if(typeof e=="string"&&(e=i.querySelector(e)),!K(e,i)){D("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ");return}var n=this.$el.getBoundingClientRect(),a=n.left,s=n.top,o=e.getBoundingClientRect(),l=o.left,c=o.top,u=a-l,h=s-c;this.scrollBy({dx:-u,dy:-h},r)},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},A={};function Se(){for(var t in A)A[t].refresh()}var ee={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};function ye(t){var e=!1,r=t.scrollPanel,i=t.bar,n=i.vBar,a=i.hBar,s=t.rail,o=s.vRail,l=s.hRail,c=r.initialScrollY,u=r.initialScrollX;return c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&D("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),u&&!String(u).match(/^\d+(\.\d+)?(%)?$/)&&D("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(n||a||o||l)&&D("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),H&&(H=[].concat(H),H.forEach(function(h){h(t)&&(e=!0)})),e}var H=null,Be=function(e,r){e=[].concat(e),e.forEach(function(i){O(i,ee)}),H=r},Pe=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],Y={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function te(t){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame,r=!!e;if(e&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(e.toString())&&(r=!1),r)return function(l,c){e(l,c)};var i=60,n={},a=1,s=null,o=+new Date;return function(l){var c=a++;return n[c]=l,s===null&&(s=setInterval(function(){var u=+new Date,h=n;n={};for(var d in h)h.hasOwnProperty(d)&&(h[d](u),o=u);u-o>2500&&(clearInterval(s),s=null)},1e3/i)),c}}var q={},Ce=/rgb\(/,Oe=/rgb\((.*)\)/;function re(t,e){var r=t+"&"+e;if(q[r])return q[r];var i=document.createElement("div");i.style.background=t,document.body.appendChild(i);var n=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),Ce.test(n)?q[r]="rgba("+Oe.exec(n)[1]+", "+e+")":t}var ie={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return Y[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(e){var r,i,n,a=this,s=re(a.ops.rail.background,a.ops.rail.opacity);this.touchManager||(this.touchManager=new G);var o=a.ops.rail.size,l=a.otherBarHide?0:o,c=a.touchManager.getTouchObject(),u={class:"__rail-is-"+a.type,style:(r={position:"absolute","z-index":"1",borderRadius:a.ops.rail.specifyBorderRadius||o,background:s,border:a.ops.rail.border},f(r,a.bar.opsSize,o),f(r,a.bar.posName,a.ops.rail.gutterOfEnds||0),f(r,a.bar.opposName,a.ops.rail.gutterOfEnds||l),f(r,a.bar.sidePosName,a.ops.rail.gutterOfSide),r)};if(c){var h;u.on=(h={},f(h,c.touchenter,function(){a.setRailHover()}),f(h,c.touchleave,function(){a.setRailLeave()}),h)}var d=a.ops.scrollButton.enable?o:0,v={class:"__bar-wrap-is-"+a.type,style:(i={position:"absolute",borderRadius:a.ops.rail.specifyBorderRadius||o},f(i,a.bar.posName,d),f(i,a.bar.opposName,d),i),on:{}},g=a.state.posValue*a.state.size,m=g*a.barRatio/a.barSize,p=a.state.opacity,B=y(this);B.setClassHook(this.type=="vertical"?"vBarVisible":"hBarVisible",!!p);var S=(n={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},f(n,a.bar.size,a.barSize*100+"%"),f(n,"background",a.ops.bar.background),f(n,a.bar.opsSize,a.ops.bar.size),f(n,"opacity",p),f(n,"transform","translate"+Y[a.type].axis+"("+m+"%)"),n),P={style:S,class:"__bar-is-"+a.type,ref:"thumb",on:{}};a.type=="vertical"?(v.style.width="100%",P.style.left=0,P.style.right=0):(v.style.height="100%",P.style.top=0,P.style.bottom=0);{var C=this.touchManager.getTouchObject();P.on[C.touchstart]=this.createBarEvent(),v.on[C.touchstart]=this.createTrackEvent()}return e("div",u,[this.createScrollbarButton(e,"start"),this.hideBar?null:e("div",v,[e("div",P)]),this.createScrollbarButton(e,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var e=y(this),r=e.vuescroll.state;r.isRailHover||(r.isRailHover=!0,e.showBar())},setRailLeave:function(){var e=y(this),r=e.vuescroll.state;r.isRailHover=!1,e.hideBar()},setBarDrag:function(e){this.$emit("setBarDrag",this.isBarDragging=e);var r=y(this);r.setClassHook(this.type=="vertical"?"vBarDragging":"hBarDragging",!!e)},createBarEvent:function(){var e=this,r=y(e),i=e.touchManager.getTouchObject();function n(o){var l=e.touchManager.getEventObject(o);!l||(o.stopImmediatePropagation(),o.preventDefault(),l=l[0],document.onselectstart=function(){return!1},e.axisStartPos=l[e.bar.client]-e.$refs.thumb.getBoundingClientRect()[e.bar.posName],e.setBarDrag(!0),b(document,i.touchmove,a),b(document,i.touchend,s))}function a(o){if(!!e.axisStartPos){var l=e.touchManager.getEventObject(o);if(!!l){l=l[0];var c=e.$refs.thumb.parentNode,u=l[e.bar.client]-c.getBoundingClientRect()[e.bar.posName];u=u/e.barRatio;var h=(u-e.axisStartPos)/c[e.bar.offset];r.scrollTo(f({},e.bar.axis.toLowerCase(),r.scrollPanelElm[e.bar.scrollSize]*h),!1)}}}function s(){e.setBarDrag(!1),r.hideBar(),document.onselectstart=null,e.axisStartPos=0,b(document,i.touchmove,a,!1,"off"),b(document,i.touchend,s,!1,"off")}return n},createTrackEvent:function(){var e=this;return function(i){var n=y(e),a=e.bar,s=a.client,o=a.offset,l=a.posName,c=a.axis,u=e.$refs.thumb;if(i.preventDefault(),i.stopImmediatePropagation(),!!u){var h=u[o],d=e.touchManager.getEventObject(i)[0],v=(d[s]-i.currentTarget.getBoundingClientRect()[l]-h/2)/(i.currentTarget[o]-h);n.scrollTo(f({},c.toLowerCase(),v*100+"%"))}}},createScrollbarButton:function(e,r){var i,n=this;if(!n.ops.scrollButton.enable)return null;var a=n.ops.rail.size,s=n.ops.scrollButton,o=s.opacity,l=s.background,c=re(l,o),u={class:["__bar-button","__bar-button-is-"+n.type+"-"+r],style:(i={},f(i,n.bar.scrollButton[r],0),f(i,"width",a),f(i,"height",a),f(i,"position","absolute"),f(i,"cursor","pointer"),f(i,"display","table"),i),ref:r},h={class:"__bar-button-inner",style:{border:"calc("+a+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};n.type=="vertical"?r=="start"?(h.style["border-bottom-color"]=c,h.style.transform="translateY(-25%)"):(h.style["border-top-color"]=c,h.style.transform="translateY(25%)"):r=="start"?(h.style["border-right-color"]=c,h.style.transform="translateX(-25%)"):(h.style["border-left-color"]=c,h.style.transform="translateX(25%)");{var d=this.touchManager.getTouchObject();h.on[d.touchstart]=this.createScrollButtonEvent(r,d)}return e("div",u,[e("div",h)])},createScrollButtonEvent:function(e,r){var i=this,n=y(i),a=i.ops.scrollButton,s=a.step,o=a.mousedownStep,l=e=="start"?-s:s,c=e=="start"?-o:o,u=te(window),h=i.type,d=!1,v=!0,g=void 0;function m(C){if(C.which!=3){if(n.setClassHook("cliking"+h+e+"Button",!0),C.stopImmediatePropagation(),C.preventDefault(),v=!1,n.scrollBy(f({},"d"+i.bar.axis.toLowerCase(),l)),b(document,r.touchend,B,!1),r.touchstart=="mousedown"){var ce=i.$refs[e];b(ce,"mouseenter",S,!1),b(ce,"mouseleave",P,!1)}clearTimeout(g),g=setTimeout(function(){d=!0,u(p,window)},500)}}function p(){d&&!v&&(n.scrollBy(f({},"d"+i.bar.axis.toLowerCase(),c),!1),u(p,window))}function B(){if(clearTimeout(g),d=!1,b(document,r.touchend,B,!1,"off"),r.touchstart=="mousedown"){var C=i.$refs[e];b(C,"mouseenter",S,!1,"off"),b(C,"mouseleave",P,!1,"off")}n.setClassHook("cliking"+h+e+"Button",!1)}function S(){v=!1,p()}function P(){v=!0}return m}}};function ne(t,e){var r=Y[e].axis,i=e.charAt(0)+"Bar",n=!t.bar[i].state.size||!t.mergedOptions.scrollPanel["scrolling"+r]||t.refreshLoad&&e!=="vertical"||t.mergedOptions.bar.disable,a=t.mergedOptions.rail.keepShow;return n&&!a?null:{hideBar:n,props:{type:e,ops:{bar:t.mergedOptions.bar,rail:t.mergedOptions.rail,scrollButton:t.mergedOptions.scrollButton},state:t.bar[i].state,hideBar:n},on:{setBarDrag:t.setBarDrag},ref:e+"Bar",key:e}}function Ee(t,e){var r=ne(e,"vertical"),i=ne(e,"horizontal");return e.setClassHook("hasVBar",!!(r&&!r.hideBar)),e.setClassHook("hasHBar",!!(i&&!i.hideBar)),[r?t("bar",R({},r,{props:R({otherBarHide:!i},r.props)})):null,i?t("bar",R({},i,{props:R({otherBarHide:!r},i.props)})):null]}var ze=function(e){var r=e.render,i=e.components,n=e.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:i,mixins:[we].concat(w([].concat(n))),created:function(){var s=this,o=O(this.$vuescrollConfig||{},{}),l=O(ee,o);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach(function(c){de(s.mergedOptions,c,s.$options.propsData.ops)}),O(l,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=ye(this.mergedOptions)},render:function(s){var o=this;if(o.renderError)return s("div",[[o.$slots.default]]);o.touchManager||(o.touchManager=new G);var l={style:{height:o.vuescroll.state.height,width:o.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:R({__vuescroll:!0},o.classHooks)},c=o.touchManager.getTouchObject();if(c){var u;l.on=(u={},f(u,c.touchenter,function(){o.vuescroll.state.pointerLeave=!1,o.updateBarStateAndEmitEvent(),o.setClassHook("mouseEnter",!0)}),f(u,c.touchleave,function(){o.vuescroll.state.pointerLeave=!0,o.hideBar(),o.setClassHook("mouseEnter",!1)}),f(u,c.touchmove,function(){o.vuescroll.state.pointerLeave=!1,o.updateBarStateAndEmitEvent()}),u)}var h=[r(s,o)].concat(w(Ee(s,o))),d=this.$slots["scroll-container"];return d?X(s,d,h,l):s("div",l,[h])},mounted:function(){var s=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push(function(){s.scrollToAnchor(),s.updateBarStateAndEmitEvent()}))},updated:function(){var s=this;this.updatedCbs.forEach(function(o){o.call(s)}),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs.scrollPanel._isVue?this.$refs.scrollPanel.$el:this.$refs.scrollPanel}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(s){this.vuescroll.state.isDragging=s},setClassHook:function(s,o){this.classHooks[s]=o},showAndDefferedHideBar:function(s){var o=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout(function(){o.timeoutId=0,o.hideBar(s)},this.mergedOptions.bar.showDelay)},showBar:function(){var s=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=s,this.bar.hBar.state.opacity=s},hideBar:function(s){var o=this.vuescroll.state,l=o.isDragging,c=o.isRailHover;l||c||(s&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),!this.mergedOptions.bar.keepShow&&!this.vuescroll.state.isDragging&&(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var s=this.mergedOptions.scrollPanel,o=s.maxHeight,l=s.maxWidth,c=this.$el.parentNode,u=c.clientHeight,h=c.clientWidth,d=this.scrollPanelElm,v=d.scrollHeight,g=d.scrollWidth,m=void 0,p=void 0;o||l?(p=v<=o?void 0:o,m=g<=l?void 0:l):(p=u,m=h),this.vuescroll.state.height=p?p+"px":void 0,this.vuescroll.state.width=m?m+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var s=this.mergedOptions.vuescroll.sizeStrategy,o=this.mergedOptions.scrollPanel,l=o.maxHeight,c=o.maxWidth,u=this.scrollPanelElm,h=u.clientHeight,d=u.clientWidth;s=="number"||l&&h>l||c&&d>c?this.useNumbericSize():s=="percent"&&h!=l&&d!=c&&this.usePercentSize()},initWatchOpsChange:function(){var s=this,o={deep:!0,sync:!0};this.$watch("mergedOptions",function(){setTimeout(function(){if(s.isSmallChangeThisTick){s.isSmallChangeThisTick=!1,s.updateBarStateAndEmitEvent("options-change");return}s.refreshInternalStatus()},0)},o),Pe.forEach(function(l){s.$watch(l,function(){s.isSmallChangeThisTick=!0},o)})},scrollToAnchor:function(){var s=function(u){return/^#[a-zA-Z_]\d*$/.test(u)},o=window.location.hash;if(!(!o||(o=o.slice(o.lastIndexOf("#")))&&!s(o))){var l=document.querySelector(o);!K(l,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(l)}}}}},ae={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var e=0,r=0,i=y(this);this.ops.initialScrollX&&(e=this.ops.initialScrollX),this.ops.initialScrollY&&(r=this.ops.initialScrollY),(e||r)&&i.scrollTo({x:e,y:r})}},mounted:function(){var e=this;setTimeout(function(){e._isDestroyed||e.updateInitialScroll()},0)},render:function(e){var r={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},i=y(this),n=i.$slots["scroll-panel"];return n?X(e,n,this.$slots.default,r):e("div",r,[[this.$slots.default]])}};function Re(t,e){var r,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=(r={},f(r,ae.name,ae),f(r,ie.name,ie),r),s={};s.components=a,s.render=e,s.mixins=t;var o=ze(s);return Be(i,n),o}function Te(t,e){for(var r=t.children,i=[],n=function(l){var c=l.getBoundingClientRect(),u=c.left,h=c.top,d=c.width,v=c.height,g=e.getBoundingClientRect(),m=g.left,p=g.top,B=g.height,S=g.width;return u-m+d>0&&u-m<S&&h-p+v>0&&h-p<B},a=0;a<r.length;a++){var s=r.item(a);n(s)&&!s.isResizeElm&&i.push(s)}return i}function oe(t,e){return function(r){return e(t,r)}}function se(t,e){var r=null;return t==="easeInQuad"&&(r=e*e),t==="easeOutQuad"&&(r=e*(2-e)),t==="easeInOutQuad"&&(r=e<.5?2*e*e:-1+(4-2*e)*e),t==="easeInCubic"&&(r=e*e*e),t==="easeOutCubic"&&(r=--e*e*e+1),t==="easeInOutCubic"&&(r=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),t==="easeInQuart"&&(r=e*e*e*e),t==="easeOutQuart"&&(r=1- --e*e*e*e),t==="easeInOutQuart"&&(r=e<.5?8*e*e*e*e:1-8*--e*e*e*e),t==="easeInQuint"&&(r=e*e*e*e*e),t==="easeOutQuint"&&(r=1+--e*e*e*e*e),t==="easeInOutQuint"&&(r=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),r||e}function N(){return!0}var F=Date.now||function(){return new Date().getTime()},I=function(){function t(){L(this,t),this.init(),this.isRunning=!1}return V(t,[{key:"pause",value:function(){!this.isRunning||(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){!this.isPaused||(this.isPaused=!1,this.ts=F()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(r,i,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:N,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:N,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:N,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:N,c=i-r,u=c>0?-1:1,h=F();this.isRunning||this.init(),u!=this.dir||h-this.ts>200?(this.ts=h,this.dir=u,this.st=r,this.ed=i,this.df=c):this.df+=c,this.spd=n,this.completeCb=s,this.vertifyCb=o,this.stepCb=a,this.easingMethod=l,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var r=this;if(!!this.df){var i=this.percent||0;this.percent=0,this.isRunning=!0;var n=function a(){if(!r.isRunning||!r.vertifyCb(i)||r.isStopped){r.isRunning=!1;return}if(i=(F()-r.ts)/r.spd,r.isPaused){r.percent=i,r.isRunning=!1;return}if(i<1){var s=r.st+r.df*r.easingMethod(i);r.stepCb(s),r.ref(a)}else r.stepCb(r.st+r.df),r.completeCb(),r.isRunning=!1};this.ref(n)}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=te(window),this.isPaused=!1,this.isStopped=!1}}]),t}();function _e(t,e,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:300,n=arguments[4],a=arguments[5],s=void 0,o=void 0,l=void 0,c=void 0,u=void 0,h=void 0,d=t,v=d.nodeType,g=new I,m=new I;if(!v){D("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.");return}v==9&&(t=t.scrollingElement);var p=t;s=p.scrollLeft,o=p.scrollTop,l=p.scrollHeight,c=p.scrollWidth,u=p.clientWidth,h=p.clientHeight,typeof e=="undefined"?e=s:e=x(e,c-u),typeof r=="undefined"?r=o:r=x(r,l-h);var B=oe(n,se);g.startScroll(s,e,i,function(S){t.scrollLeft=S},a,void 0,B),m.startScroll(o,r,i,function(S){t.scrollTop=S},a,void 0,B)}var xe={mounted:function(){this.scrollX=new I,this.scrollY=new I},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(e,r,i,n){i===!1||typeof i=="undefined"&&(i=this.mergedOptions.scrollPanel.speed);var a=this.scrollPanelElm,s=a.scrollTop,o=a.scrollLeft,l=a.scrollWidth,c=a.clientWidth,u=a.scrollHeight,h=a.clientHeight;if(typeof e=="undefined"?e=o:e=x(e,l-c),typeof r=="undefined"?r=s:r=x(r,u-h),i){n=n||this.mergedOptions.scrollPanel.easing;var d=oe(n,se);e!=o&&this.scrollX.startScroll(o,e,i,function(v){a.scrollLeft=v},this.scrollingComplete.bind(this),void 0,d),r!=s&&this.scrollY.startScroll(s,r,i,function(v){a.scrollTop=v},this.scrollingComplete.bind(this),void 0,d)}else a.scrollTop=r,a.scrollLeft=e},getCurrentviewDomNative:function(){var e=this.scrollContentElm,r=Te(e,this.$el);return r}}};function De(t){var e={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":t.handleScroll},props:{ops:t.mergedOptions.scrollPanel}};t.scrollYEnable=!0,t.scrollXEnable=!0,e.nativeOn.DOMMouseScroll=e.nativeOn.mousewheel=t.onMouseWheel;var r=t.mergedOptions.scrollPanel,i=r.scrollingY,n=r.scrollingX;(!t.bar.hBar.state.size||!n)&&(t.scrollXEnable=!1,e.style.overflowX="hidden"),(!t.bar.vBar.state.size||!i)&&(t.scrollYEnable=!1,e.style.overflowY="hidden");var a=fe();return a?(t.bar.vBar.state.size&&t.mergedOptions.scrollPanel.scrollingY&&(t.mergedOptions.scrollPanel.verticalNativeBarPos=="right"?e.style.marginRight="-"+a+"px":e.style.marginLeft="-"+a+"px"),t.bar.hBar.state.size&&t.mergedOptions.scrollPanel.scrollingX&&(e.style.height="calc(100% + "+a+"px)")):(be(),e.class.push("__hidebar"),he()&&(e.style["-webkit-overflow-scrolling"]="touch")),e.style.transformOrigin="",e.style.transform="",e}function He(t,e){var r={};return r=De(e),t("scrollPanel",r,[ke(t,e)])}function ke(t,e){var r={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:r,ref:"scrollContent",class:"__view"},n=e.$slots["scroll-content"];return e.mergedOptions.scrollPanel.scrollingX?r.width=pe("width","fit-content"):i.style.width="100%",e.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=e.mergedOptions.rail.size),n?X(t,n,e.$slots.default,i):t("div",i,[e.$slots.default])}function $e(t,e){return We(t,e)}function We(t,e){if(!t.hasResized){var r="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=r;var n=document.createElement("object");return n.style.cssText=r,n.type="text/html",n.tabIndex=-1,n.onload=function(){b(n.contentDocument.defaultView,"resize",e)},U()||(n.data="about:blank"),i.isResizeElm=!0,i.appendChild(n),t.appendChild(i),U()&&(n.data="about:blank"),function(){n.contentDocument&&b(n.contentDocument.defaultView,"resize",e,"off"),t.removeChild(i),t.hasResized=!1}}}var Me={methods:{updateNativeModeBarState:function(){var e=this.scrollPanelElm,r=this.vuescroll.state.currentSizeStrategy=="percent",i=this.vuescroll.state,n=i.width,a=i.height,s=r||!n?e.clientWidth:n.slice(0,-2),o=r||!a?e.clientHeight:a.slice(0,-2),l=o/e.scrollHeight,c=s/e.scrollWidth;this.bar.vBar.state.posValue=e.scrollTop*100/o,this.bar.hBar.state.posValue=e.scrollLeft*100/s,this.bar.vBar.state.size=l<1?l:0,this.bar.hBar.state.size=c<1?c:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(e,r){return window.getComputedStyle(e)[r]},checkScrollable:function(e,r,i){for(var n=!1,a=e.target?e.target:e;a&&a.nodeType==1&&a!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(a.nodeName);){var s=this.css(a,"overflow")||"";if(/scroll|auto/.test(s)){var o=this.getScrollProcess(a),l=o.v,c=o.h,u=this.css(a,"overflowX")!=="hidden",h=this.css(a,"overflowY")!=="hidden";if(u&&(r<0&&c>0||r>0&&c<1)||h&&(i<0&&l>0||i>0&&l<1)){n=a==this.scrollPanelElm;break}}a=a.parentNode?a.parentNode:!1}return n},onMouseWheel:function(e){var r=this.mergedOptions.vuescroll,i=r.wheelDirectionReverse,n=r.wheelScrollDuration,a=r.checkShiftKey,s=r.locking,o=void 0,l=void 0;e.wheelDelta?e.deltaY||e.deltaX?(o=e.deltaX,l=e.deltaY,s&&(Math.abs(e.deltaX)>Math.abs(e.deltaY)?l=0:o=0)):(o=0,l=-1*e.wheelDelta/2):e.detail&&(l=o=e.detail*16,e.axis==1?l=0:e.axis==2&&(o=0)),a&&e.shiftKey&&(o^=l,l^=o,o^=l),i&&(o^=l,l^=o,o^=l),this.checkScrollable(e,o,l)&&(e.stopPropagation(),e.preventDefault(),this.scrollBy({dx:o,dy:l},n))}},computed:{scrollContentElm:function(){return this.$refs.scrollContent._isVue?this.$refs.scrollContent.$el:this.$refs.scrollContent}}},Ae=[xe,Me],Ne={mixins:Ae,methods:{destroy:function(){this.destroyResize&&this.destroyResize()},getCurrentviewDom:function(){return this.getCurrentviewDomNative()},internalScrollTo:function(e,r,i,n){this.nativeScrollTo(e,r,i,n)},internalStop:function(){this.nativeStop()},internalPause:function(){this.nativePause()},internalContinue:function(){this.nativeContinue()},handleScroll:function(e){this.updateBarStateAndEmitEvent("handle-scroll",e)},updateBarStateAndEmitEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.updateNativeModeBarState(),e&&this.emitEvent(e,r),this.mergedOptions.bar.onlyShowBarOnScroll?(e=="handle-scroll"||e=="handle-resize"||e=="refresh-status"||e=="window-resize"||e=="options-change")&&this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(e){var r=e||this.scrollPanelElm,i=r.scrollHeight,n=r.scrollWidth,a=r.clientHeight,s=r.clientWidth,o=r.scrollTop,l=r.scrollLeft,c=Math.min(o/(i-a||1),1),u=Math.min(l/(n-s||1),1);return{v:c,h:u}},emitEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.scrollPanelElm,n=i.scrollTop,a=i.scrollLeft,s={type:"vertical"},o={type:"horizontal"},l=this.getScrollProcess(),c=l.v,u=l.h;s.process=c,o.process=u,s.barSize=this.bar.vBar.state.size,o.barSize=this.bar.hBar.state.size,s.scrollTop=n,o.scrollLeft=a,this.$emit(e,s,o,r)},initVariables:function(){this.$el._isVuescroll=!0},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var e=this,r=this.mergedOptions.vuescroll.detectResize;if(!(this.destroyResize&&r)&&(this.destroyResize&&this.destroyResize(),!!r)){var i=this.scrollContentElm,n=this,a=function(){n.updateBarStateAndEmitEvent("window-resize")},s=function(){var u={};u.width=e.scrollPanelElm.scrollWidth,u.height=e.scrollPanelElm.scrollHeight,e.updateBarStateAndEmitEvent("handle-resize",u),e.setVsSize()};window.addEventListener("resize",a,!1);var o=$e(i,s),l=function(){window.removeEventListener("resize",a,!1)};this.destroyResize=function(){l(),o(),e.destroyResize=null}}},getPosition:function(){return this.getNativePosition()}}},Ie={vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1,checkShiftKey:!0}},Q=Re(Ne,He,[Ie]);function Le(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||Q.name,Q),t.prototype.$vuescrollConfig=e.ops||{}}var le=R({install:Le,version:"4.17.5",refreshAll:Se,scrollTo:_e},Q);return typeof window!="undefined"&&window.Vue&&window.Vue.use(le),le})})(ue.vuescrollNative);const qe=ue.vuescrollNative.exports;exports.default=qe;
@@ -0,0 +1,12 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ export default class PropsMinix extends Vue {
3
+ protected width: number;
4
+ protected height: number;
5
+ protected gridConfig: MXGridConfig;
6
+ protected layerId: string;
7
+ protected cellPoints: number;
8
+ /** 放大倍数 */
9
+ protected magnification: number;
10
+ /** 画图模式 1: 画格子, 0:画点 */
11
+ protected model: 1 | 0;
12
+ }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=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 o=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),i=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},f=i(a);var m=Object.defineProperty,c=Object.getOwnPropertyDescriptor,t=(e,u,d,p)=>{for(var r=p>1?void 0:p?c(u,d):u,l=e.length-1,n;l>=0;l--)(n=e[l])&&(r=(p?n(u,d,r):n(r))||r);return p&&r&&m(u,d,r),r};exports.default=class extends f.default{};t([o.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"width",2);t([o.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"height",2);t([o.Prop({required:!0})],exports.default.prototype,"gridConfig",2);t([o.Prop({default:"MXGrid",type:String})],exports.default.prototype,"layerId",2);t([o.Prop({default:5,type:Number})],exports.default.prototype,"cellPoints",2);t([o.Prop({default:1})],exports.default.prototype,"magnification",2);t([o.Prop({default:0})],exports.default.prototype,"model",2);exports.default=t([s.default({name:"PropsMinix"})],exports.default);
@@ -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"),u=t.withInstall(e.default);exports.default=u;
@@ -0,0 +1,19 @@
1
+ import PropsMinix from './PropsMinix';
2
+ declare const MXBackgroundGrid_base: import("vue-class-component/lib/declarations").VueClass<PropsMinix>;
3
+ declare class MXBackgroundGrid extends MXBackgroundGrid_base {
4
+ protected canvasIns: Readonly<CanvasRenderingContext2D | null>;
5
+ protected watchWidth(): void;
6
+ protected watchHeight(): void;
7
+ protected watchGridConfig(): void;
8
+ protected get cellMg(): number;
9
+ protected mounted(): void;
10
+ protected againInitGrid(): void;
11
+ protected initGrid(): void;
12
+ protected drawPoints(): void;
13
+ protected drawRowAndCol(): void;
14
+ protected drawMesh(): void;
15
+ protected beforeCtxDraw(ctx: CanvasRenderingContext2D, color: string, lineWidth: number): void;
16
+ protected afterDrawOver(ctx: CanvasRenderingContext2D): void;
17
+ }
18
+ declare const _sfc_main: typeof MXBackgroundGrid;
19
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");const u=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 d=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),v=require("@costy-plus/utils"),w=require("./PropsMinix.js");var m=Object.defineProperty,p=Object.getOwnPropertyDescriptor,l=(s,i,t,e)=>{for(var h=e>1?void 0:e?p(i,t):i,n=s.length-1,o;n>=0;n--)(o=s[n])&&(h=(e?o(i,t,h):o(h))||h);return e&&h&&m(i,t,h),h};exports.default=class extends u.mixins(w.default){constructor(){super(...arguments),this.canvasIns=Object.freeze(null)}watchWidth(){this.againInitGrid()}watchHeight(){this.againInitGrid()}watchGridConfig(){this.againInitGrid()}get cellMg(){return this.gridConfig.cellMg*this.magnification}mounted(){this.initGrid()}againInitGrid(){this.initGrid()}initGrid(){if(this.canvasIns)this.canvasIns.clearRect(0,0,this.width,this.height);else{const s=document.getElementById(this.layerId);this.canvasIns=s.getContext("2d")}this.model===0?(this.drawPoints(),this.drawRowAndCol()):this.model===1&&this.drawMesh()}drawPoints(){var o,r;let i=this.gridConfig.lineWidth===1?.5:0,t=this.cellMg;const e=[],h=this.magnification>1?this.gridConfig.lineWidth+1:this.gridConfig.lineWidth;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.smallCellColor,h);t<this.width;)e.push(t),t%this.cellMg===0?t+=h:t+=this.cellMg-h;let n=0;for(;i<this.height;){if(n%this.cellPoints!==0)for(let a=0;a<e.length;a++)(a+2)%this.cellPoints!==0&&a%2===0&&((o=this.canvasIns)==null||o.moveTo(e[a],i),(r=this.canvasIns)==null||r.lineTo(e[a+1],i));i+=this.cellMg,n++}this.afterDrawOver(this.canvasIns)}drawRowAndCol(){var h,n,o,r;const s=this.gridConfig.lineWidth===1?.5:0;let i=s,t=s,e=0;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.bigCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints===0&&((h=this.canvasIns)==null||h.moveTo(i,0),(n=this.canvasIns)==null||n.lineTo(i,this.height),(o=this.canvasIns)==null||o.moveTo(0,t),(r=this.canvasIns)==null||r.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;this.afterDrawOver(this.canvasIns)}drawMesh(){var h,n,o,r,a,c,g,f;const s=this.gridConfig.lineWidth===1?.5:0;let i=s,t=s,e=0;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.smallCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints!==0&&((h=this.canvasIns)==null||h.moveTo(i,0),(n=this.canvasIns)==null||n.lineTo(i,this.height),(o=this.canvasIns)==null||o.moveTo(0,t),(r=this.canvasIns)==null||r.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;for(this.afterDrawOver(this.canvasIns),i=t=s,e=0,this.beforeCtxDraw(this.canvasIns,this.gridConfig.bigCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints===0&&((a=this.canvasIns)==null||a.moveTo(i,0),(c=this.canvasIns)==null||c.lineTo(i,this.height),(g=this.canvasIns)==null||g.moveTo(0,t),(f=this.canvasIns)==null||f.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;this.afterDrawOver(this.canvasIns)}beforeCtxDraw(s,i,t){s.save(),s.beginPath(),s.strokeStyle=i,s.lineWidth=t}afterDrawOver(s){s.stroke(),s.restore()}};l([d.Watch("width")],exports.default.prototype,"watchWidth",1);l([d.Watch("height")],exports.default.prototype,"watchHeight",1);l([d.Watch("gridConfig",{deep:!0})],exports.default.prototype,"watchGridConfig",1);l([v.debounce(200)],exports.default.prototype,"againInitGrid",1);exports.default=l([u.default({name:"MXBackgroundGrid"})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var i=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{staticClass:"mx-background-grid-box",style:{width:`${e.width}px`,height:`${e.height}px`}},[t("canvas",{attrs:{id:e.layerId,width:e.width,height:e.height}})])},a=[];exports.render=i;exports.staticRenderFns=a;
@@ -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 r=_.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 o=function(){return r.exports}();exports.default=o;
@@ -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,15 @@
1
+ import MethodsMinix from './method';
2
+ declare const ECGWaveForm_base: import("vue-class-component/lib/declarations").VueClass<MethodsMinix>;
3
+ declare class ECGWaveForm extends ECGWaveForm_base {
4
+ protected watchFormatEcgData(): void;
5
+ protected watchVuescrollConfig(): void;
6
+ protected watchLeadHeadConfig(): void;
7
+ protected watchLeadModel(): void;
8
+ protected watchWidth(): void;
9
+ protected watchHeight(): void;
10
+ protected watchHeartFight(): void;
11
+ protected mounted(): void;
12
+ protected repaint(): void;
13
+ }
14
+ declare const _sfc_main: typeof ECGWaveForm;
15
+ 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 l=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/Watch.js"),u=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js"),c=require("../BackgroundGrid/index2.js"),h=require("../MeasuringRuler/index2.js"),p=require("../ParallelRuler/index2.js"),v=require("../MagnifierWave/index.js"),m=require("../EnlargeWave/index2.js"),f=require("./method.js");var g=Object.defineProperty,w=Object.getOwnPropertyDescriptor,a=(e,t,n,s)=>{for(var r=s>1?void 0:s?w(t,n):t,i=e.length-1,d;i>=0;i--)(d=e[i])&&(r=(s?d(t,n,r):d(r))||r);return s&&r&&g(t,n,r),r};exports.default=class extends l.mixins(f.default){watchFormatEcgData(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}watchVuescrollConfig(){this.repaint()}watchLeadHeadConfig(){var e,t;(e=this.leadHeadGroup)==null||e.removeAll(),(t=this.sceneIns)==null||t.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchHeartFight(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}mounted(){this.init()}repaint(){var e,t;(e=this.sceneIns)==null||e.clear(),(t=this.sceneIns)==null||t.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.combinationDrawing()}};a([o.Watch("formatEcgData",{deep:!0})],exports.default.prototype,"watchFormatEcgData",1);a([o.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);a([o.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);a([o.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);a([o.Watch("width")],exports.default.prototype,"watchWidth",1);a([o.Watch("height")],exports.default.prototype,"watchHeight",1);a([o.Watch("singleModeInfo",{deep:!0})],exports.default.prototype,"watchHeartFight",1);exports.default=a([l.default({name:"ECGWaveForm",components:{vueScroll:u.default,MXBackgroundGrid:c.default,MXMeasuringRuler:h.default,MXParallelRuler:p.default,MXMagnifierWave:v.default,MXEnlargeWave:m.default}})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var u=function(){var t,i,o,r,l,s,n,d,g,v,c,h,a=this,f=a.$createElement,e=a._self._c||f;return e("div",{style:{width:`${a.width}px`,height:`${a.height}px`},attrs:{id:"ecg-wave-form-main"}},[e("MXBackgroundGrid",{attrs:{width:a.canvasContainer.width,height:a.canvasContainer.height,"grid-config":a.gridConfig,"layer-id":"MXGrid"}}),a.measurRulerConfig.isShow?e("MXMeasuringRuler",a._g({staticClass:"measuring-ruler",attrs:{width:a.canvasContainer.width,height:a.canvasContainer.height,"cell-mg":a.gridConfig.cellMg,"speed-value":((t=a.formatEcgData)===null||t===void 0?void 0:t.speed)||0,sens:a.formatEcgData.sens}},a.$listeners)):a._e(),a.paralleRulerConfig.isShow?e("MXParallelRuler",a._g({staticClass:"parallel-ruler",attrs:{width:a.canvasContainer.width,height:a.canvasContainer.height,"cell-mg":a.gridConfig.cellMg,"speed-value":((i=a.formatEcgData)===null||i===void 0?void 0:i.speed)||0,sens:a.formatEcgData.sens,"heart-rate":a.ventricularRate}},a.$listeners)):a._e(),a.magnifierRulerConfig.isShow?e("MXMagnifierWave",{staticClass:"magnifier-wave",attrs:{width:a.canvasContainer.width,height:a.canvasContainer.height,"grid-config":a.gridConfig,"speed-value":((o=a.formatEcgData)===null||o===void 0?void 0:o.speed)||0,sens:a.formatEcgData.sens,step:((r=a.formatEcgData)===null||r===void 0?void 0:r.step)||0,"lead-head-config":a.leadHeadConfig,"wave-data":a.waveDataCopy,"add-wave-data":a.addWaveDataCopy,"single-wave-data":a.singleWaveDataCopy,"long-lead-config":a.longLeadConfig,"split-block-height":a.splitBlockHeight,"split-point":a.splitPoint,"lead-config":a.leadConfig,"heart-fight":a.heartFight,"normal-lead-names":((l=a.formatEcgData)===null||l===void 0?void 0:l.processedData.otherParams.LeadName)||[]}}):a._e(),a.isShowEnlargeWave?e("MXEnlargeWave",a._g({staticClass:"enlarge-wave",attrs:{"is-show-enlarge-wave":a.isShowEnlargeWave,width:a.width,height:a.height,"grid-config":a.gridConfig,"speed-value":((s=a.formatEcgData)===null||s===void 0?void 0:s.speed)||0,sens:a.formatEcgData.sens,step:((n=a.formatEcgData)===null||n===void 0?void 0:n.step)||0,"sample-rate":((d=a.formatEcgData)===null||d===void 0?void 0:d.processedData.otherParams.SampleRate)||0,sensitivity:((g=a.formatEcgData)===null||g===void 0?void 0:g.processedData.otherParams.Sensitivity)||0,"normal-data":((v=a.formatEcgData)===null||v===void 0?void 0:v.processedData.originData.Data)||[],"complex-data":((c=a.formatEcgData)===null||c===void 0?void 0:c.processedData.originData.ComplexData)||[],"lead-name-list":a.leadNameList,"lead-head-config":a.leadHeadConfig,"active-lead-idx":a.activeLeadIdx,"active-lead-analyse-value":a.activeLeadAnalyseValue,"analyse-value":((h=a.formatEcgData)===null||h===void 0?void 0:h.processedData.otherParams.AnalyseValue)||[],"enlarge-wave-mode":a.enlargeWaveMode,"conventional-e-c-g-config":a.conventionalECGConfig,gains:a.gains,speeds:a.speeds},on:{"update:isShowEnlargeWave":function(m){a.isShowEnlargeWave=m},"update:is-show-enlarge-wave":function(m){a.isShowEnlargeWave=m}}},a.$listeners)):a._e(),e("div",{attrs:{id:"wave-from-box"}}),e("div",{staticClass:"scroll-box",style:{width:`${a.width}px`,height:`${a.height}px`}},[e("vueScroll",{ref:"vueScroll",attrs:{ops:a.vuescrollConfig},on:{"handle-scroll":a.handleScroll}},[e("div",{staticClass:"scroll-empty",style:{width:`${a.vuescrollWH.width}px`,height:`${a.vuescrollWH.height}px`}})])],1)],1)},p=[];exports.render=u;exports.staticRenderFns=p;
@@ -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 @@
1
+ "use strict";var R=Object.defineProperty,T=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var k=(t,e,a)=>e in t?R(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,D=(t,e)=>{for(var a in e||(e={}))B.call(e,a)&&k(t,a,e[a]);if(M)for(var a of M(e))j.call(e,a)&&k(t,a,e[a]);return t},P=(t,e)=>T(t,z(e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=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 g=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),v=require("@costy-plus/utils"),f=require("zrender"),$=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},q=$(_);var V=Object.defineProperty,X=Object.getOwnPropertyDescriptor,c=(t,e,a,i)=>{for(var s=i>1?void 0:i?X(e,a):e,o=t.length-1,n;o>=0;o--)(n=t[o])&&(s=(i?n(e,a,s):n(s))||s);return i&&s&&V(e,a,s),s};exports.default=class extends q.default{constructor(){super(...arguments),this.AssistCtx=Object.freeze(null),this.sceneIns=Object.freeze(null),this.layerBgGroup=Object.freeze(null),this.leadHeadGroup=Object.freeze(null),this.splitLineGroup=Object.freeze(null),this.rowAndColwaveFromGroup=Object.freeze(null),this.singleWaveFromGroup=Object.freeze(null),this.addwaveFromGroup=Object.freeze(null),this.leadHeadNameGroup=Object.freeze(null),this.leadHeadOffAndDelGroup=Object.freeze(null),this.rulerGroup=Object.freeze(null),this.arrowGroup=Object.freeze(null),this.heardBeatLineGroup=Object.freeze(null),this.bottomAreaHeight=Object.freeze(100),this.dataTotalTimes=Object.freeze(0),this.totalRows=Object.freeze(0),this.rulerStep=Object.freeze(0),this.drawLoopArrowStartPosIdx=Object.freeze(0),this.dbClickWaveFromTime=Object.freeze(0),this.currentHeardBeat={heardBeat:null,ele:null},this.loopArrowY=Object.freeze({add:0,rowAndCol:0}),this.fontFamily=Object.freeze("\u5FAE\u8F6F\u96C5\u9ED1"),this.splitBlockHeight=0,this.splitPoint=0,this.slidingWindowInfo=Object.freeze({}),this.addSlidingWindowInfo=Object.freeze({}),this.highestAndLowestPoint=Object.freeze({Data:{maxPoints:0,minPoints:0},ComplexData:{maxPoints:0,minPoints:0}}),this.drawArea=Object.freeze({width:0,height:0}),this.vuescrollWH={width:0,height:0},this.waveDataCopy=[],this.addWaveDataCopy=[],this.singleWaveDataCopy=[],this.leadNameList=[],this.activeLeadIdx=-1,this.activeLeadAnalyseValue=null,this.isShowEnlargeWave=!1}get canvasContainer(){var t;return{width:this.width,height:this.height-(this.vuescrollConfig.isShow&&parseInt(`${(t=this.vuescrollConfig.bar)==null?void 0:t.size}`)||0)||0}}get waveFromData(){var t,e,a;return((t=this.formatEcgData)==null?void 0:t.analysisValueMode)===v.AnalysisMode.CompoundWave?((e=this.formatEcgData)==null?void 0:e.processedData.handleData.ComplexData)||[]:((a=this.formatEcgData)==null?void 0:a.processedData.handleData.Data)||[]}get isSingleMode(){return this.leadModel.column===1&&this.leadModel.line===1}destroyed(){var t,e,a,i,s,o,n,l,r,p,d;(t=this.rowAndColwaveFromGroup)==null||t.removeAll(),(e=this.singleWaveFromGroup)==null||e.removeAll(),(a=this.addwaveFromGroup)==null||a.removeAll(),(i=this.leadHeadGroup)==null||i.removeAll(),(s=this.splitLineGroup)==null||s.removeAll(),(o=this.leadHeadNameGroup)==null||o.removeAll(),(n=this.leadHeadOffAndDelGroup)==null||n.removeAll(),(l=this.rulerGroup)==null||l.removeAll(),(r=this.arrowGroup)==null||r.removeAll(),(p=this.heardBeatLineGroup)==null||p.removeAll(),(d=this.sceneIns)==null||d.dispose()}init(){var t;this.initWaveFormPeer(),this.combinationDrawing(),(t=this.formatEcgData)!=null&&t.processedData.otherParams.PosStart&&(this.vuescrollConfig.isShow?this.$nextTick(()=>{var e,a;this.$refs.vueScroll.scrollBy({dx:(((e=this.formatEcgData)==null?void 0:e.processedData.otherParams.PosStart)||0)*(((a=this.formatEcgData)==null?void 0:a.step)||0)})}):(this.scrollWaveFrom(this.formatEcgData.processedData.otherParams.PosStart),this.scrollRuler(this.formatEcgData.processedData.otherParams.PosStart),this.scrollArrow(this.formatEcgData.processedData.otherParams.PosStart)))}initWaveFormPeer(){const t=document.getElementById("wave-from-box");this.sceneIns=f.init(t,{width:this.canvasContainer.width,height:this.canvasContainer.height,devicePixelRatio:2});const e=document.getElementById("MXGrid");this.AssistCtx=e.getContext("2d")}combinationDrawing(){this.initConfig(),this.drawLeadHead(),this.drawColSplitLine(),this.initSlidingWindowInfo(),this.drawRulerNotes(),this.drawWaveFrom()}initConfig(){var e,a,i,s,o,n,l,r,p;this.rowAndColwaveFromGroup=new f.Group({name:"rowAndColwaveFrom"}),this.singleWaveFromGroup=new f.Group({name:"singleWaveFrom"}),this.addwaveFromGroup=new f.Group({name:"addwaveFrom"}),this.leadHeadGroup=new f.Group({name:"leadHead"}),this.splitLineGroup=new f.Group({name:"splitLine"}),this.leadHeadNameGroup=new f.Group({name:"leadHeadName"}),this.leadHeadOffAndDelGroup=new f.Group({name:"leadHeadOffAndDel"}),this.rulerGroup=new f.Group({name:"ruler"}),this.arrowGroup=new f.Group({name:"arrowLoop"}),this.heardBeatLineGroup=new f.Group({name:"heardBeatLine"}),this.vuescrollWH.width=this.width,this.vuescrollWH.height=this.height;let t=this.canvasContainer.width;if(((a=(e=this.conventionalECGConfig)==null?void 0:e.ecgReviewSetting)==null?void 0:a.ecgareawidth)==="1"){const d=v.getPrintLengthToPx(((i=this.formatEcgData)==null?void 0:i.processedData.otherParams.SampleRate)||0)+this.leadHeadConfig.leadHedeWidth;d<=t&&(t=d)}this.drawArea={width:t,height:this.canvasContainer.height-this.bottomAreaHeight},this.slidingWindowInfo={points:0,startInd:0,endInd:0},this.addSlidingWindowInfo={points:0,startInd:0,endInd:0},this.loopArrowY={add:0,rowAndCol:0},this.currentHeardBeat={heardBeat:null,ele:null},this.leadNameList=((s=this.formatEcgData)==null?void 0:s.processedData.otherParams.LeadName)||[],this.totalRows=this.leadModel.line+this.leadModel.add||1,this.highestAndLowestPoint=(o=this.formatEcgData)==null?void 0:o.calcHighestAndLowestPoint(),this.isSingleMode?this.splitBlockHeight=(((n=this.formatEcgData)==null?void 0:n.analysisValueMode)===v.AnalysisMode.CompoundWave?Math.abs(this.highestAndLowestPoint.ComplexData.maxPoints)+Math.abs(this.highestAndLowestPoint.ComplexData.minPoints):Math.abs(this.highestAndLowestPoint.Data.maxPoints)+Math.abs(this.highestAndLowestPoint.Data.minPoints))+22:this.splitBlockHeight=this.drawArea.height/this.totalRows,this.dataTotalTimes=v.getDataLenTimes(this.waveFromData[0].length||0,((l=this.formatEcgData)==null?void 0:l.processedData.otherParams.SampleRate)||0),this.rulerStep=(((r=this.formatEcgData)==null?void 0:r.step)||1)*(((p=this.formatEcgData)==null?void 0:p.processedData.otherParams.SampleRate)||1)/(this.gridConfig.cellMg*2+2)}isLeadOff(t){var e;return!!(((e=this.formatEcgData)==null?void 0:e.processedData.otherParams.LeadOff)||[]).includes(t)}isLeadDel(t){var e;return!!(((e=this.formatEcgData)==null?void 0:e.processedData.otherParams.LeadDelete)||[]).includes(t)}onDbClickWaveFrom(t,e){console.log("onDbClickWaveFrom",t);const a=Date.now(),i=()=>{var w,u,m,y;const s=t.target.name.split("_");this.activeLeadIdx=+s[0];const o=+s[1];let n=0,l=0;e==="single"?(n=t.offsetX-this.singleWaveDataCopy[o].pos[0],l=this.singleWaveDataCopy[o].startInd):e==="rowAndCol"?(n=t.offsetX-this.waveDataCopy[o].pos[0],l=this.waveDataCopy[o].startInd||0):e==="add"&&(n=t.offsetX-this.addWaveDataCopy[o].pos[0],l=this.addWaveDataCopy[o].startInd||0);let r=v.getPointIdxForPx(n,((w=this.formatEcgData)==null?void 0:w.step)||1);r+=l;const p=((u=this.formatEcgData)==null?void 0:u.processedData.otherParams.AnalyseValue)||[];let d=null;if(this.enlargeWaveMode===v.AnalysisMode.SelectedHeartbeat){if(r<=p[1].KeyPosByBeat.Tend+.1*(((m=this.formatEcgData)==null?void 0:m.processedData.otherParams.SampleRate)||0))d=p[1];else for(let C=1;C<p.length;C++)if(r>p[C-1].KeyPosByBeat.Tend+1&&r<p[C].KeyPosByBeat.Tend+.1*(((y=this.formatEcgData)==null?void 0:y.processedData.otherParams.SampleRate)||0)){d=p[C];break}}else d=p[0];console.log("currentAnalyseValue",d,d==null?void 0:d.BeatID),d&&(this.activeLeadAnalyseValue=P(D({},d),{BeatCount:p.length-1}),d=null,this.isShowEnlargeWave=!0)};a-this.dbClickWaveFromTime<400?(this.dbClickWaveFromTime=0,i()):this.dbClickWaveFromTime=a}createLeadHead(t,e){var s;const a=this.leadHeadConfig.leadHedeWidth/4,i=((s=this.formatEcgData)==null?void 0:s.sens)||0;return new f.Polyline({cursor:"",shape:{points:[[0+t,0+e],[a+t,0+e],[a+t,-i+e],[3*a+t,-i+e],[3*a+t,0+e],[4*a+t,0+e]]},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}})}creatSplitLine(t,e){var a;return new f.Line({cursor:"",shape:{x1:0+t,y1:0+e,x2:0+t,y2:(((a=this.formatEcgData)==null?void 0:a.sens)||0)+e},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}})}drawLeadHead(){var t,e;for(let a=1;a<=this.totalRows;a++)(t=this.leadHeadGroup)==null||t.add(this.createLeadHead(0,a*this.splitBlockHeight));(e=this.sceneIns)==null||e.add(this.leadHeadGroup)}drawColSplitLine(){var a,i,s,o,n;(a=this.splitLineGroup)==null||a.removeAll(),(i=this.sceneIns)==null||i.remove(this.splitLineGroup);const t=(this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/this.leadModel.column;this.splitPoint=t,this.isSingleMode&&(this.splitPoint-=80);let e=0;for(let l=1;l<=this.leadModel.column-1;l++){e=l*t+this.leadHeadConfig.leadHedeWidth;for(let r=1;r<=this.leadModel.line;r++)(o=this.splitLineGroup)==null||o.add(this.creatSplitLine(e,r*this.splitBlockHeight-(((s=this.formatEcgData)==null?void 0:s.sens)||0)*.5))}(n=this.sceneIns)==null||n.add(this.splitLineGroup)}initSlidingWindowInfo(){var i,s;const t=((i=this.formatEcgData)==null?void 0:i.step)||0,e=Math.ceil(this.splitPoint/t);this.slidingWindowInfo={points:e,startInd:0,endInd:e},this.vuescrollConfig.isShow&&(this.vuescrollWH.width=this.canvasContainer.width+(((s=this.formatEcgData)==null?void 0:s.dataPxLen)||0)-this.splitPoint);const a=Math.ceil((this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/t);this.addSlidingWindowInfo={points:a,startInd:0,endInd:a}}getRednerSinglePoints(){let t=0,e=0;const a=this.waveFromData[this.singleModeInfo.defaultSelect]||[];let i=this.slidingWindowInfo.startInd||0,s=this.slidingWindowInfo.endInd||0;const o=[],n=Math.ceil(a.length/(this.slidingWindowInfo.points||1));for(let l=0;l<1;l++){t=l*this.splitPoint+this.leadHeadConfig.leadHedeWidth,e=0;for(let r=1;r<=n;r++)e=r*this.splitBlockHeight,r>1&&(e*=.8,i=s,s=i+(this.slidingWindowInfo.points||0)),r===1&&(this.loopArrowY.rowAndCol=e),o.push({pos:[t,e],startInd:i,endInd:s,data:a.slice(i,s).map((p,d)=>{var w;return[d*(((w=this.formatEcgData)==null?void 0:w.step)||0),-p]})})}return o}getRednerPoints(){let t=0,e=0,a=0,i=[],s=this.slidingWindowInfo.startInd||0,o=this.slidingWindowInfo.endInd||0;const n=[];for(let l=0;l<this.leadModel.column;l++){t=l*this.splitPoint+this.leadHeadConfig.leadHedeWidth,e=0,this.leadModel.isContinuous&&l>0&&(s=o,o=s+(this.slidingWindowInfo.points||0));for(let r=1;r<=this.leadModel.line&&(e=r*this.splitBlockHeight,!(a>(this.waveFromData||[]).length-1));r++)i=this.waveFromData[a]||[],a++,r===1&&(this.loopArrowY.rowAndCol=e),n.push({pos:[t,e],startInd:s,endInd:o,data:i.slice(s,o).map((p,d)=>{var w;return[d*(((w=this.formatEcgData)==null?void 0:w.step)||0),-p]})})}return n}getAddRednerPoints(){const t=[],e=this.leadHeadConfig.leadHedeWidth;let a=0,i=0,s=[];for(let o=0;o<this.leadModel.add;o++)i=this.longLeadConfig[o],a=(o+this.leadModel.line+1)*this.splitBlockHeight,s=this.waveFromData[i]||[],o===0&&(this.loopArrowY.add=a),t.push({pos:[e,a],startInd:this.addSlidingWindowInfo.startInd||0,endInd:this.addSlidingWindowInfo.endInd||0,data:s.slice(this.addSlidingWindowInfo.startInd,this.addSlidingWindowInfo.endInd).map((n,l)=>{var r;return[l*(((r=this.formatEcgData)==null?void 0:r.step)||0),-n]})});return t}createSingleWaveFrom(){var o,n,l,r,p,d,w;(o=this.singleWaveFromGroup)==null||o.removeAll();const t=(((n=this.formatEcgData)==null?void 0:n.processedData.otherParams.LeadName)||[])[this.singleModeInfo.defaultSelect]||0;let e=this.getRednerSinglePoints(),a=v.getDataLenTimes(this.slidingWindowInfo.points||0,((l=this.formatEcgData)==null?void 0:l.processedData.otherParams.SampleRate)||0),i=0,s=0;for(let u=0;u<e.length&&!(e[u].pos[1]>this.drawArea.height+this.bottomAreaHeight);u++)this.isLeadDel(t)||(i=parseInt(`${a/1e3/60}`,10),s=parseInt(`${a/1e3%60}`,10),i=s===60?i+=1:i,i=i===0?"00":i<10?`0${i}`:i,s=s===0||s===60?"00":s<10?`0${s}`:s,(r=this.singleWaveFromGroup)==null||r.add(new f.Polyline({cursor:"",name:this.singleModeInfo.defaultSelect+"_"+u,shape:{points:e[u].data.map(([m,y])=>[m+e[u].pos[0],y+e[u].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:m=>{this.onDbClickWaveFrom(m,"single")}})),(d=this.singleWaveFromGroup)==null||d.add(new f.Text({cursor:"",style:{x:e[u].pos[0],y:e[u].pos[1]-(((p=this.formatEcgData)==null?void 0:p.sens)||0)/2,text:u===0?"00:00 \u5FC3\u7387":`${i}:${s} \u5FC3\u7387`,fontWeight:"bold",fontSize:14,fill:"#FF0080",fontFamily:this.fontFamily}})),u>0&&(a+=a));this.createLeadName(t,e[0].pos[0]-10,e[0].pos[1]+10),this.createLeadOffAndDel(t,e[0].pos[0]-5,e[0].pos[1]-(((w=this.formatEcgData)==null?void 0:w.sens)||0)/2-15),this.singleWaveDataCopy=e,e=null}createAddWaveFrom(){var e,a;console.time("createAddWaveFrom");let t=this.getAddRednerPoints();for(let i=0;i<t.length;i++)this.isLeadDel(this.longLeadConfig[i])||((e=this.addwaveFromGroup)==null||e.add(new f.Polyline({cursor:"",name:this.longLeadConfig[i]+"_"+i,shape:{points:t[i].data.map(([s,o])=>[s+t[i].pos[0],o+t[i].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:s=>{this.onDbClickWaveFrom(s,"add")}})),this.createLeadName(this.longLeadConfig[i],t[i].pos[0],t[i].pos[1]-15,!0),this.createLeadOffAndDel(this.longLeadConfig[i],t[i].pos[0]-5,t[i].pos[1]-(((a=this.formatEcgData)==null?void 0:a.sens)||0)/2-15));console.timeEnd("createAddWaveFrom"),this.addWaveDataCopy=t,t=null}createRowAndColWaveFrom(){var a,i,s,o,n,l;console.time("createRowAndColWaveFrom"),(a=this.rowAndColwaveFromGroup)==null||a.removeAll();let t=this.getRednerPoints(),e=0;for(let r=0;r<t.length;r++)e=(((i=this.formatEcgData)==null?void 0:i.processedData.otherParams.LeadName)||[])[r]||0,this.isLeadDel(e)||(s=this.rowAndColwaveFromGroup)==null||s.add(new f.Polyline({cursor:"",name:r+"_"+r,shape:{points:t[r].data.map(([p,d])=>[p+t[r].pos[0],d+t[r].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:p=>{this.onDbClickWaveFrom(p,"rowAndCol")}})),r<this.leadModel.line?(this.createLeadName(e,t[r].pos[0],t[r].pos[1]-15),this.createLeadOffAndDel(e,t[r].pos[0]-5,t[r].pos[1]-(((o=this.formatEcgData)==null?void 0:o.sens)||0)/2-15)):(this.createLeadName(e,t[r].pos[0]+5,t[r].pos[1]-(((n=this.formatEcgData)==null?void 0:n.sens)||0)/2),this.createLeadOffAndDel(e,t[r].pos[0]-5,t[r].pos[1]-(((l=this.formatEcgData)==null?void 0:l.sens)||0)/2+9));this.waveDataCopy=t,t=null}createLeadName(t,e,a,i=!1){var s;(s=this.leadHeadNameGroup)==null||s.add(new f.Text({style:{x:e,y:a,text:v.LeadNameTexts[t],fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily},oncontextmenu:o=>{o.event.preventDefault(),this.$emit("notiifyLeadName",{event:P(D({},o),{name:v.LeadNameTexts[t],idx:t}),isAdd:i})},onclick:o=>{this.$emit("notiifyLeadName",{event:P(D({},o),{name:v.LeadNameTexts[t],idx:t}),isAdd:i})}}))}createLeadOffAndDel(t,e,a){var i;(this.isLeadOff(t)||this.isLeadDel(t))&&((i=this.leadHeadOffAndDelGroup)==null||i.add(new f.Text({cursor:"",style:{x:e,y:a,text:"X",fontWeight:"bold",fontSize:18,fill:"#E42c03",fontFamily:this.fontFamily}})))}drawRulerNotes(){var i,s,o,n;if(!this.rulerConfig.isShow)return;const t={fill:"#FF0080",fontSize:13,fontFamily:this.fontFamily},e=new f.Text({cursor:"",style:D({text:"(s)",x:this.leadHeadConfig.leadHedeWidth/2-8,y:this.drawArea.height+this.bottomAreaHeight-25},t)}),a=new f.Text({style:D({text:`${(i=this.formatEcgData)==null?void 0:i.gain}mm/mV ${(s=this.formatEcgData)==null?void 0:s.speed}mm/s`,x:this.leadHeadConfig.leadHedeWidth/2+20,y:this.drawArea.height+this.bottomAreaHeight-40},t)});(o=this.sceneIns)==null||o.add(a),(n=this.sceneIns)==null||n.add(e)}drawRuler(t=0){var o,n,l,r,p;if(!this.rulerConfig.isShow)return;const e=this.dataTotalTimes/1e3;let a=this.leadHeadConfig.leadHedeWidth,i=0,s=e;if(this.leadModel.isContinuous)s=e*5;else if(!this.leadModel.add&&((o=this.formatEcgData)==null?void 0:o.step)){const d=v.getPointIdxForPx(this.splitPoint,this.formatEcgData.step),w=v.getDataLenTimes(d,((n=this.formatEcgData)==null?void 0:n.processedData.otherParams.SampleRate)||0)/1e3;s=t+w}for(let d=t;d<=s;d=+(d+.1).toFixed(1))d!==t&&(a+=this.rulerStep),d%1===0?(i=this.canvasContainer.height-10,(l=this.rulerGroup)==null||l.add(new f.Text({cursor:"",style:{x:a,y:i-15,text:d+"",fontSize:13,fontFamily:this.fontFamily,fill:"#FF0080"}}))):i=this.canvasContainer.height-5,(r=this.rulerGroup)==null||r.add(new f.Line({cursor:"",shape:{x1:a,y1:i,x2:a,y2:this.canvasContainer.height},style:{stroke:"#FF0080",lineWidth:2}}));(p=this.sceneIns)==null||p.add(this.rulerGroup)}drawWaveFrom(){var t,e,a;this.isSingleMode?(this.addWaveDataCopy=[],this.waveDataCopy=[],this.createSingleWaveFrom(),(t=this.sceneIns)==null||t.add(this.singleWaveFromGroup)):(this.singleWaveDataCopy=[],this.createAddWaveFrom(),this.createRowAndColWaveFrom(),(e=this.sceneIns)==null||e.add(this.rowAndColwaveFromGroup),(a=this.sceneIns)==null||a.add(this.addwaveFromGroup)),this.drawLeadHeadNameAndOffOrDel(),this.drawRuler(),this.drawLoopArrow()}drawLeadHeadNameAndOffOrDel(){var t,e;(t=this.sceneIns)==null||t.add(this.leadHeadNameGroup),(e=this.sceneIns)==null||e.add(this.leadHeadOffAndDelGroup)}drawLoopArrow(t=0){var l,r,p,d,w,u,m,y,C,I,F,H,G,S,b,x,E;if(this.drawLoopArrowStartPosIdx=t,!this.heartFight.isShow)return;this.heartFight.mode&&this.currentHeardBeat.heardBeat===null&&(this.currentHeardBeat.heardBeat=((l=this.formatEcgData)==null?void 0:l.heartBeatPosition[this.heartFight.defaultSelect])||null,this.drawHeardBeatLine());let e=0,a=0;this.leadModel.add?a=this.loopArrowY.add-(((r=this.formatEcgData)==null?void 0:r.sens)||0)-this.splitBlockHeight/3.5:a=20;let i=0,s=0;const o={fontSize:12,fill:"red",fontFamily:this.fontFamily};let n=0;for(let L=0;L<(((p=this.formatEcgData)==null?void 0:p.heartBeatPosition)||[]).length;L++){const h=(d=this.formatEcgData)==null?void 0:d.heartBeatPosition[L];if(n=((h==null?void 0:h.position)||0)-t,!(t>((h==null?void 0:h.position)||0))&&!(!this.leadModel.isContinuous&&!this.leadModel.add&&n>(this.slidingWindowInfo.points||0))){if(((h==null?void 0:h.position)||0)-this.addSlidingWindowInfo.startInd>(this.addSlidingWindowInfo.points||0))break;e=n*(((w=this.formatEcgData)==null?void 0:w.step)||0)+this.leadHeadConfig.leadHedeWidth-9.5,s=0,(y=this.arrowGroup)==null||y.add(new f.Polygon({name:"arrow_box",shape:{points:[[4+e,0+a],[15+e,0+a],[15+e,10+a],[19+e,10+a],[9.5+e,22+a],[0+e,10+a],[4+e,10+a],[4+e,0+a]]},style:{fill:((m=(u=this.currentHeardBeat)==null?void 0:u.heardBeat)==null?void 0:m.index)===(h==null?void 0:h.index)?"blue":"#ccc"},onclick:A=>{var O;!this.heartFight.mode||(A.target.attr({style:{fill:"blue"}}),(O=this.arrowGroup)==null||O.children().filter(W=>W.name==="arrow_box").forEach(W=>{W.id!==A.target.id&&W.attr({style:{fill:"#ccc"}})}),this.arrowLoopClick(h,A.target))}})),this.heartFight.heartrate&&(i=((C=this.AssistCtx)==null?void 0:C.measureText(`${(h==null?void 0:h.heartrate)||""}`).width)||0,(I=this.arrowGroup)==null||I.add(new f.Text({cursor:"",style:D({x:4+e-i*1.5,y:s+a,text:`${(h==null?void 0:h.heartrate)||""}`},o)})),s+=12),this.heartFight.interval&&(i=((F=this.AssistCtx)==null?void 0:F.measureText(`${(h==null?void 0:h.interval)||""}`).width)||0,(H=this.arrowGroup)==null||H.add(new f.Text({cursor:"",style:D({x:4+e-i*1.5,y:s+a,text:`${(h==null?void 0:h.interval)||""}`},o)})),s+=12),this.heartFight.qrstCompany&&(i=((G=this.AssistCtx)==null?void 0:G.measureText(`${(h==null?void 0:h.qrstCompany)||""}`).width)||0,(S=this.arrowGroup)==null||S.add(new f.Text({cursor:"",style:D({x:4+e-i*1.5,y:s+a,text:`${(h==null?void 0:h.qrstCompany)||""}`},o)})),s+=12),this.heartFight.telectricalaxis&&(i=((b=this.AssistCtx)==null?void 0:b.measureText(`${(h==null?void 0:h.telectricalaxis)||""}`).width)||0,(x=this.arrowGroup)==null||x.add(new f.Text({cursor:"",style:D({x:4+e-i*1.5,y:s+a,text:`${(h==null?void 0:h.telectricalaxis)||""}`},o)})))}}(E=this.sceneIns)==null||E.add(this.arrowGroup)}arrowLoopClick(t,e){this.$emit("notifyHeardBeat",f.util.clone(t)),this.currentHeardBeat.heardBeat=t,this.currentHeardBeat.ele=e,this.drawHeardBeatLine()}drawHeardBeatLine(t=0){var n,l,r,p,d,w;if(!this.currentHeardBeat.heardBeat)return;(n=this.heardBeatLineGroup)==null||n.removeAll(),(l=this.sceneIns)==null||l.remove(this.heardBeatLineGroup);let e=this.formatEcgData.processedData.otherParams.AnalyseValue[this.currentHeardBeat.heardBeat.index].KeyPosByBeat,a=0,i=this.getRednerPoints(),s=this.getAddRednerPoints(),o;for(const u in e)if(["Pstart","Pend","QRSstart","QRSend","Tstart","Tend"].includes(u)&&Object.prototype.hasOwnProperty.call(e,u)){a=(e[u]-this.slidingWindowInfo.startInd)*(((r=this.formatEcgData)==null?void 0:r.step)||0);e:for(let m=0;m<i.length;m++)if(!(this.isLeadOff(m)||this.isLeadDel(m))){if(t>e[u]||!this.leadModel.isContinuous&&e[u]-this.slidingWindowInfo.startInd>(this.slidingWindowInfo.points||0)||(o=i[m],this.leadModel.isContinuous&&m>this.leadModel.line-1))break e;(p=this.heardBeatLineGroup)==null||p.add(this.createHeardBeatLine(o.pos[0]+a,o.pos[1]))}e:for(let m=0;m<s.length;m++)if(!(this.isLeadOff(this.longLeadConfig[m])&&this.isLeadDel(this.longLeadConfig[m]))){if(t>e[u])break e;o=s[m],(d=this.heardBeatLineGroup)==null||d.add(this.createHeardBeatLine(o.pos[0]+a,o.pos[1]))}}(w=this.sceneIns)==null||w.add(this.heardBeatLineGroup),e=null,i=null,s=null}createHeardBeatLine(t,e){return new f.Line({cursor:"",shape:{x1:t,y1:e-10,x2:t,y2:e+10},style:{stroke:"blue",lineWidth:1}})}handleScroll(t,e,a){var i;if(e.type==="horizontal"){e.scrollLeft=e.scrollLeft||0;const s=v.getPointIdxForPx(e.scrollLeft,((i=this.formatEcgData)==null?void 0:i.step)||1);this.scrollWaveFrom(s),this.scrollRuler(s),this.scrollArrow(s),this.$emit("notifyScrollPointIdx",s)}}scrollWaveFrom(t){var i,s;this.slidingWindowInfo.startInd=t,this.slidingWindowInfo.endInd=t+(this.slidingWindowInfo.points||0),this.addSlidingWindowInfo.startInd=t,this.addSlidingWindowInfo.endInd=t+(this.addSlidingWindowInfo.points||0);let e=this.getRednerPoints(),a=this.getAddRednerPoints();this.waveDataCopy=e,this.addWaveDataCopy=a,(i=this.rowAndColwaveFromGroup)==null||i.eachChild((o,n)=>{n=n||0,o.attr({shape:{points:e[n].data.map(([l,r])=>[l+e[n].pos[0],r+e[n].pos[1]])}})}),(s=this.addwaveFromGroup)==null||s.eachChild((o,n)=>{n=n||0,o.attr({shape:{points:a[n].data.map(([l,r])=>[l+a[n].pos[0],r+a[n].pos[1]])}})}),e=null,a=null}scrollRuler(t){var a,i,s;(a=this.rulerGroup)==null||a.removeAll(),(i=this.sceneIns)==null||i.remove(this.rulerGroup);const e=v.getDataLenTimes(t,((s=this.formatEcgData)==null?void 0:s.processedData.otherParams.SampleRate)||0)/1e3;this.drawRuler(e)}scrollArrow(t){var e,a;(e=this.arrowGroup)==null||e.removeAll(),(a=this.sceneIns)==null||a.remove(this.arrowGroup),this.drawLoopArrow(t),this.drawHeardBeatLine(t)}};c([g.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"width",2);c([g.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"height",2);c([g.Prop({required:!0})],exports.default.prototype,"gridConfig",2);c([g.Prop({default:5,type:Number})],exports.default.prototype,"cellPoints",2);c([g.Prop({required:!0})],exports.default.prototype,"conventionalECGConfig",2);c([g.Prop({default:()=>({leadHedeWidth:20,leadHedeColor:"#000",leadHedeLineWidth:2})})],exports.default.prototype,"leadHeadConfig",2);c([g.Prop({required:!0})],exports.default.prototype,"formatEcgData",2);c([g.Prop({required:!0})],exports.default.prototype,"leadModel",2);c([g.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);c([g.Prop({default:()=>[1,6,10]})],exports.default.prototype,"longLeadConfig",2);c([g.Prop({default:()=>({isShow:!1,mode:!1,defaultSelect:2,heartrate:!1,interval:!1,qrstCompany:!1,telectricalaxis:!1})})],exports.default.prototype,"heartFight",2);c([g.Prop({default:()=>({isShow:!0,scrollPanel:{scrollingY:!1},bar:{keepShow:!0,size:"10px"}})})],exports.default.prototype,"vuescrollConfig",2);c([g.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"rulerConfig",2);c([g.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"measurRulerConfig",2);c([g.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"paralleRulerConfig",2);c([g.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"magnifierRulerConfig",2);c([g.Prop({default:60})],exports.default.prototype,"ventricularRate",2);c([g.Prop({default:v.AnalysisMode.CompoundWave})],exports.default.prototype,"enlargeWaveMode",2);c([g.Prop({default:()=>[]})],exports.default.prototype,"gains",2);c([g.Prop({default:()=>[]})],exports.default.prototype,"speeds",2);c([g.Prop({default:()=>({defaultSelect:1})})],exports.default.prototype,"singleModeInfo",2);c([v.throttling(200)],exports.default.prototype,"handleScroll",1);exports.default=c([N.default({name:"Methods"})],exports.default);
@@ -0,0 +1,46 @@
1
+ .absoluteT0L0 {
2
+ position: absolute;
3
+ left: 0;
4
+ top: 0;
5
+ z-index: 2;
6
+ }
7
+ #ecg-wave-form-main {
8
+ border: 1px solid #564648;
9
+ position: relative;
10
+ }
11
+ #ecg-wave-form-main #wave-from-box,
12
+ #ecg-wave-form-main .scroll-box {
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ }
17
+ #ecg-wave-form-main #wave-from-box {
18
+ z-index: 1;
19
+ }
20
+ #ecg-wave-form-main .scroll-box {
21
+ z-index: 0;
22
+ }
23
+ #ecg-wave-form-main .measuring-ruler {
24
+ position: absolute;
25
+ left: 0;
26
+ top: 0;
27
+ z-index: 2;
28
+ }
29
+ #ecg-wave-form-main .parallel-ruler {
30
+ position: absolute;
31
+ left: 0;
32
+ top: 0;
33
+ z-index: 2;
34
+ }
35
+ #ecg-wave-form-main .magnifier-wave {
36
+ position: absolute;
37
+ left: 0;
38
+ top: 0;
39
+ z-index: 2;
40
+ }
41
+ #ecg-wave-form-main .enlarge-wave {
42
+ position: absolute;
43
+ left: 0;
44
+ top: 0;
45
+ z-index: 2;
46
+ }
@@ -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"),l=t.withInstall(e.default);exports.default=l;
@@ -0,0 +1,10 @@
1
+ import Methods from './medthod';
2
+ declare const MXEnlargeWave_base: import("vue-class-component/lib/declarations").VueClass<Methods>;
3
+ declare class MXEnlargeWave extends MXEnlargeWave_base {
4
+ protected mounted(): void;
5
+ protected init(): void;
6
+ protected initWaveFormPeer(): void;
7
+ protected combinationDrawing(): void;
8
+ }
9
+ declare const _sfc_main: typeof MXEnlargeWave;
10
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("element-ui/lib/theme-chalk/button.css");require("element-ui/lib/theme-chalk/icon.css");require("element-ui/lib/theme-chalk/checkbox.css");require("element-ui/lib/theme-chalk/descriptions.css");require("element-ui/lib/theme-chalk/descriptions-item.css");require("./style/index.css");require("vue");const c=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("element-ui"),l=require("../BackgroundGrid/index2.js"),u=require("zrender"),d=require("./medthod.js");var m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,p=(s,i,r,n)=>{for(var t=n>1?void 0:n?h(i,r):i,o=s.length-1,a;o>=0;o--)(a=s[o])&&(t=(n?a(i,r,t):a(t))||t);return n&&t&&m(i,r,t),t};exports.default=class extends c.mixins(d.default){mounted(){this.init()}init(){this.initWaveFormPeer(),this.combinationDrawing()}initWaveFormPeer(){const s=document.getElementById("enlarge-wave-from-box");this.sceneIns=u.init(s,{width:this.containerWH.width,height:this.containerWH.height,devicePixelRatio:2});const i=document.getElementById("MXEnlargeGrid");this.AssistCtx=i.getContext("2d")}combinationDrawing(){this.createLeadHead(),this.createLeadName(),this.createSensAndSpeed(),this.createWaveFrom(),this.drawWaveFrom(),this.drawMeasureLine(),this.calculatedValue(),this.electricAxisAnalyse(),this.processEnlargeAnalysis()}};exports.default=p([c.default({name:"MXEnlargeWave",components:{MXBackgroundGrid:l.default,[e.Button.name]:e.Button,[e.Checkbox.name]:e.Checkbox,[e.Descriptions.name]:e.Descriptions,[e.DescriptionsItem.name]:e.DescriptionsItem}})],exports.default);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var l=function(){var i,n,e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:e.className,style:{width:`${e.width}px`,height:`${e.height}px`},attrs:{id:"mx-enlarge-wave"}},[t("div",{staticClass:"wave-selects"},[t("div",e._l(e.leadNames,function(a){return t("el-button",{key:a.val,class:{active:e.leadNameActive.val===a.val},attrs:{size:"mini"},on:{click:function(r){return e.selectLeadName(a)}}},[e._v(" "+e._s(a.name)+" ")])}),1),e.isShowSyncAnalyseValue?t("el-checkbox",{model:{value:e.isSyncAnalyseValue,callback:function(a){e.isSyncAnalyseValue=a},expression:"isSyncAnalyseValue"}},[e._v(" \u540C\u6B65\u5206\u6790\u503C ")]):e._e()],1),t("div",{staticClass:"container-box"},[t("div",{staticClass:"main-box",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),e.mainBoxDbClick.apply(null,arguments)}}},[t("MXBackgroundGrid",{attrs:{width:e.containerWH.width,height:e.containerWH.height,"grid-config":e.gridConfig,"layer-id":"MXEnlargeGrid",magnification:e.magnification}}),t("div",{attrs:{id:"enlarge-wave-from-box"}})],1),t("div",{staticClass:"table-box"},[t("div",[t("div",{staticClass:"header"},[e._v(e._s(e.typeClass)+" \u7EFC\u5408\u53C2\u6570\u8868")]),t("el-descriptions",{attrs:{column:1}},[e.enlargeWaveMode===e.AnalysisMode.SelectedHeartbeat?t("el-descriptions-item",{attrs:{label:"\u5FC3\u640F\u5E8F\u53F7"}},[e._v(" "+e._s(((i=e.currentLeadAnalyseValue)===null||i===void 0?void 0:i.BeatID)||0)+" ")]):e._e(),t("el-descriptions-item",{attrs:{label:"\u5FC3\u640F\u4E2A\u6570"}},[e._v(" "+e._s(((n=e.currentLeadAnalyseValue)===null||n===void 0?void 0:n.BeatCount)||0)+" ")]),e.enlargeWaveMode===e.AnalysisMode.CompoundWave?t("el-descriptions-item",{attrs:{label:"\u6A21\u5F0F"}},[e._v(" \u590D\u5408\u6CE2 ")]):e._e(),e._l(e.AnalyseParameterTable,function(a){return t("el-descriptions-item",{key:a.key,attrs:{label:a.name}},[t("div",{staticClass:"el-descriptions-item__info"},[t("span",[e._v(e._s(e.enlargeAnalysisData&&e.enlargeAnalysisData[a.key]||0))]),t("span",[e._v(e._s(a.unit))])])])})],2)],1),t("el-descriptions",{attrs:{column:1}},[t("el-descriptions-item",{attrs:{label:"\u4E8B\u4EF6\u5DEE"}},[e._v(" "+e._s(e.difference.timeDifference)+"ms ")]),t("el-descriptions-item",{attrs:{label:"\u5E45\u503C\u5DEE"}},[e._v(" "+e._s(e.difference.amplitudeDifference)+"mV ")])],1)],1)]),t("div",{staticClass:"operate-box"},[t("div",{staticClass:"operate-box_item"},[t("span",[e._v("\u589E\u76CA")]),t("el-button",{staticClass:"icon-tips",attrs:{icon:"el-icon-circle-plus-outline",circle:""},on:{click:function(a){return e.toggleGain(!0)}}}),t("el-button",{staticClass:"icon-tips",attrs:{icon:"el-icon-remove-outline",circle:""},on:{click:function(a){return e.toggleGain(!1)}}})],1),t("div",{staticClass:"operate-box_item"},[t("span",[e._v("\u8D70\u7EB8")]),t("el-button",{staticClass:"icon-tips",attrs:{icon:"el-icon-circle-plus-outline",circle:""},on:{click:function(a){return e.toggleSpeeds(!0)}}}),t("el-button",{staticClass:"icon-tips",attrs:{icon:"el-icon-remove-outline",circle:""},on:{click:function(a){return e.toggleSpeeds(!1)}}})],1),e.enlargeWaveMode===e.AnalysisMode.SelectedHeartbeat?t("div",{staticClass:"operate-box_item"},[t("span",[e._v("\u5FC3\u535A")]),t("el-button",{staticClass:"icon-tips",attrs:{icon:"el-icon-arrow-left",circle:""},on:{click:function(a){return e.toggleBeaadId(!1)}}}),t("el-button",{staticClass:"icon-tips",attrs:{icon:"el-icon-arrow-right",circle:""},on:{click:function(a){return e.toggleBeaadId(!0)}}})],1):e._e()])])},c=[];exports.render=l;exports.staticRenderFns=c;
@@ -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;