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,302 @@
1
+ import b from "vue";
2
+ import x from "../../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
3
+ import "../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js";
4
+ import { Prop as d } from "../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js";
5
+ import { Watch as m } from "../../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js";
6
+ import P from "../../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js";
7
+ import { LeadNameTexts as G, getPointIdxForPx as B } from "@costy-plus/utils";
8
+ import { Group as D, init as H, Text as S, Polyline as z, util as F, Polygon as A } from "zrender";
9
+ import L from "../../BackgroundGrid/index2.js";
10
+ var O = Object.defineProperty, j = Object.getOwnPropertyDescriptor, l = (t, e, i, r) => {
11
+ for (var o = r > 1 ? void 0 : r ? j(e, i) : e, s = t.length - 1, h; s >= 0; s--)
12
+ (h = t[s]) && (o = (r ? h(e, i, o) : h(o)) || o);
13
+ return r && o && O(e, i, o), o;
14
+ };
15
+ let a = class extends b {
16
+ constructor() {
17
+ super(...arguments), this.AssistCtx = Object.freeze(null), this.sceneIns = Object.freeze(null), this.waveFormGroup = Object.freeze(null), this.arrowGroup = Object.freeze(null), this.scrollIdx = Object.freeze(0), this.currentHeardBeat = Object.freeze({
18
+ heardBeat: null,
19
+ ele: null
20
+ }), this.slidingWindowInfo = Object.freeze({}), this.vuescrollWH = {
21
+ width: 0,
22
+ height: 0
23
+ };
24
+ }
25
+ get canvasContainer() {
26
+ var t;
27
+ return {
28
+ width: this.width,
29
+ height: this.height - (this.vuescrollConfig.isShow && parseInt(`${(t = this.vuescrollConfig.bar) == null ? void 0 : t.size}`) || 0) || 0
30
+ };
31
+ }
32
+ watchWidth() {
33
+ this.repaint();
34
+ }
35
+ watchHeight() {
36
+ this.repaint();
37
+ }
38
+ watchFormatData() {
39
+ this.repaint();
40
+ }
41
+ repaint() {
42
+ var t, e;
43
+ (t = this.sceneIns) == null || t.clear(), (e = this.sceneIns) == null || e.resize({
44
+ width: this.canvasContainer.width,
45
+ height: this.canvasContainer.height
46
+ }), this.combinationDrawing();
47
+ }
48
+ destroyed() {
49
+ var t, e, i;
50
+ (t = this.waveFormGroup) == null || t.removeAll(), (e = this.arrowGroup) == null || e.removeAll(), (i = this.sceneIns) == null || i.dispose();
51
+ }
52
+ created() {
53
+ this.initConfig();
54
+ }
55
+ initConfig() {
56
+ this.slidingWindowInfo = {
57
+ points: 0,
58
+ startInd: 0,
59
+ endInd: 0
60
+ }, this.currentHeardBeat = {
61
+ heardBeat: null,
62
+ ele: null
63
+ }, this.vuescrollWH.width = this.width, this.vuescrollWH.height = this.height, this.waveFormGroup = new D({
64
+ name: "waveForm"
65
+ }), this.arrowGroup = new D({
66
+ name: "arrowGroup"
67
+ }), this.initSlidingWindowInfo();
68
+ }
69
+ mounted() {
70
+ this.initWaveFormPeer(), this.combinationDrawing();
71
+ }
72
+ combinationDrawing() {
73
+ this.drawWaveFrom(), this.drawLoopArrow(this.scrollIdx);
74
+ }
75
+ initWaveFormPeer() {
76
+ const t = document.getElementById("wave-from-box");
77
+ this.sceneIns = H(t, {
78
+ width: this.canvasContainer.width,
79
+ height: this.canvasContainer.height,
80
+ devicePixelRatio: 2
81
+ });
82
+ const e = document.getElementById(
83
+ "MXRoutine_Grid"
84
+ );
85
+ this.AssistCtx = e.getContext("2d");
86
+ }
87
+ initSlidingWindowInfo() {
88
+ var i, r;
89
+ const t = ((i = this.formatData) == null ? void 0 : i.step) || 0;
90
+ this.vuescrollConfig.isShow && (this.vuescrollWH.width = this.canvasContainer.width + (((r = this.formatData) == null ? void 0 : r.dataPxLen) || 0) - this.width);
91
+ const e = Math.ceil(this.width / t);
92
+ this.slidingWindowInfo = {
93
+ points: e,
94
+ startInd: 0,
95
+ endInd: e
96
+ };
97
+ }
98
+ drawWaveFrom() {
99
+ var t;
100
+ this.createLeadName(), this.createWaveFrom(), (t = this.sceneIns) == null || t.add(this.waveFormGroup);
101
+ }
102
+ createLeadName() {
103
+ var t;
104
+ (t = this.sceneIns) == null || t.add(
105
+ new S({
106
+ style: {
107
+ x: this.leadConfig.fontSize * 0.5,
108
+ y: this.canvasContainer.height / 2 + this.leadConfig.fontSize * 2,
109
+ text: G[1],
110
+ fontSize: this.leadConfig.fontSize,
111
+ fill: this.leadConfig.lineColor,
112
+ fontFamily: this.leadConfig.fontFamily
113
+ }
114
+ })
115
+ );
116
+ }
117
+ getRednerPoints() {
118
+ var r;
119
+ const t = [], e = this.canvasContainer.height / 2;
120
+ let i = [];
121
+ for (let o = 1; o <= 1; o++)
122
+ i = ((r = this.formatData) == null ? void 0 : r.processedData.handleData.Data[o]) || [], t.push({
123
+ pos: [0, e],
124
+ startInd: this.slidingWindowInfo.startInd || 0,
125
+ endInd: this.slidingWindowInfo.endInd || 0,
126
+ data: i.slice(this.slidingWindowInfo.startInd, this.slidingWindowInfo.endInd).map((s, h) => {
127
+ var c;
128
+ return [h * (((c = this.formatData) == null ? void 0 : c.step) || 0), -s];
129
+ })
130
+ });
131
+ return t;
132
+ }
133
+ createWaveFrom() {
134
+ var e, i;
135
+ (e = this.waveFormGroup) == null || e.removeAll();
136
+ let t = this.getRednerPoints();
137
+ for (let r = 0; r < t.length; r++)
138
+ (i = this.waveFormGroup) == null || i.add(
139
+ new z({
140
+ cursor: "",
141
+ shape: {
142
+ points: t[r].data.map(([o, s]) => [o + t[r].pos[0], s + t[r].pos[1]])
143
+ },
144
+ style: {
145
+ stroke: this.leadConfig.lineColor,
146
+ lineWidth: this.leadConfig.lineWidth
147
+ }
148
+ })
149
+ );
150
+ t = null;
151
+ }
152
+ drawLoopArrow(t = 0) {
153
+ var o, s, h, c, w, g, v, I, C, W;
154
+ (o = this.arrowGroup) == null || o.removeAll(), this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = ((s = this.formatData) == null ? void 0 : s.heartBeatPosition[0]) || null, this.$emit(
155
+ "notifyHeardBeat",
156
+ F.clone(((h = this.formatData) == null ? void 0 : h.heartBeatPosition[0]) || null)
157
+ ));
158
+ let e = 0;
159
+ const i = 20;
160
+ let r = 0;
161
+ for (let f = 0; f < (((c = this.formatData) == null ? void 0 : c.heartBeatPosition) || []).length; f++) {
162
+ const n = (w = this.formatData) == null ? void 0 : w.heartBeatPosition[f];
163
+ if (r = ((n == null ? void 0 : n.position) || 0) - t, !(t > ((n == null ? void 0 : n.position) || 0))) {
164
+ if (((n == null ? void 0 : n.position) || 0) - this.slidingWindowInfo.startInd > (this.slidingWindowInfo.points || 0))
165
+ break;
166
+ e = r * (((g = this.formatData) == null ? void 0 : g.step) || 0) - 9.5, (C = this.arrowGroup) == null || C.add(
167
+ new A({
168
+ name: "arrow_box",
169
+ shape: {
170
+ points: [
171
+ [4 + e, 0 + i],
172
+ [15 + e, 0 + i],
173
+ [15 + e, 10 + i],
174
+ [19 + e, 10 + i],
175
+ [9.5 + e, 22 + i],
176
+ [0 + e, 10 + i],
177
+ [4 + e, 10 + i],
178
+ [4 + e, 0 + i]
179
+ ]
180
+ },
181
+ style: {
182
+ fill: ((I = (v = this.currentHeardBeat) == null ? void 0 : v.heardBeat) == null ? void 0 : I.index) === (n == null ? void 0 : n.index) ? "blue" : "#ccc"
183
+ },
184
+ onclick: (u) => {
185
+ var y;
186
+ u.target.attr({
187
+ style: { fill: "blue" }
188
+ }), (y = this.arrowGroup) == null || y.children().filter((p) => p.name === "arrow_box").forEach((p) => {
189
+ p.id !== u.target.id && p.attr({
190
+ style: { fill: "#ccc" }
191
+ });
192
+ }), this.arrowLoopClick(
193
+ n,
194
+ u.target
195
+ );
196
+ }
197
+ })
198
+ );
199
+ }
200
+ }
201
+ (W = this.sceneIns) == null || W.add(this.arrowGroup);
202
+ }
203
+ arrowLoopClick(t, e) {
204
+ this.$emit("notifyHeardBeat", F.clone(t)), this.currentHeardBeat.heardBeat = t, this.currentHeardBeat.ele = e;
205
+ }
206
+ handleScroll(t, e, i) {
207
+ var r;
208
+ if (e.type === "horizontal") {
209
+ e.scrollLeft = e.scrollLeft || 0;
210
+ const o = B(
211
+ e.scrollLeft,
212
+ ((r = this.formatData) == null ? void 0 : r.step) || 1
213
+ );
214
+ this.scrollIdx = o, this.scrollWaveFrom(o), this.scrollArrow(o), this.$emit("notifyScrollPointIdx", o);
215
+ }
216
+ }
217
+ scrollWaveFrom(t) {
218
+ var i;
219
+ this.slidingWindowInfo.startInd = t, this.slidingWindowInfo.endInd = t + (this.slidingWindowInfo.points || 0);
220
+ let e = this.getRednerPoints();
221
+ (i = this.waveFormGroup) == null || i.eachChild((r, o) => {
222
+ o = o || 0, r.attr({
223
+ shape: {
224
+ points: e[o].data.map(([s, h]) => [s + e[o].pos[0], h + e[o].pos[1]])
225
+ }
226
+ });
227
+ }), e = null;
228
+ }
229
+ scrollArrow(t) {
230
+ var e, i;
231
+ (e = this.arrowGroup) == null || e.removeAll(), (i = this.sceneIns) == null || i.remove(this.arrowGroup), this.drawLoopArrow(t);
232
+ }
233
+ };
234
+ l([
235
+ d({
236
+ required: !0,
237
+ type: Number,
238
+ validator: (t) => typeof t == "number"
239
+ })
240
+ ], a.prototype, "width", 2);
241
+ l([
242
+ d({
243
+ required: !0,
244
+ type: Number,
245
+ validator: (t) => typeof t == "number"
246
+ })
247
+ ], a.prototype, "height", 2);
248
+ l([
249
+ d({
250
+ required: !0
251
+ })
252
+ ], a.prototype, "gridConfig", 2);
253
+ l([
254
+ d({
255
+ default: () => ({
256
+ isShow: !0,
257
+ scrollPanel: {
258
+ scrollingY: !1
259
+ },
260
+ bar: {
261
+ keepShow: !0,
262
+ size: "10px"
263
+ }
264
+ })
265
+ })
266
+ ], a.prototype, "vuescrollConfig", 2);
267
+ l([
268
+ d({
269
+ required: !0
270
+ })
271
+ ], a.prototype, "formatData", 2);
272
+ l([
273
+ d({
274
+ default: () => ({
275
+ lineColor: "#000",
276
+ lineWidth: 1,
277
+ fontFamily: "\u5FAE\u8F6F\u96C5\u9ED1",
278
+ fontSize: 15
279
+ })
280
+ })
281
+ ], a.prototype, "leadConfig", 2);
282
+ l([
283
+ m("width")
284
+ ], a.prototype, "watchWidth", 1);
285
+ l([
286
+ m("height")
287
+ ], a.prototype, "watchHeight", 1);
288
+ l([
289
+ m("formatData", { deep: !0 })
290
+ ], a.prototype, "watchFormatData", 1);
291
+ a = l([
292
+ x({
293
+ name: "Routine",
294
+ components: {
295
+ vueScroll: P,
296
+ MXBackgroundGrid: L
297
+ }
298
+ })
299
+ ], a);
300
+ export {
301
+ a as default
302
+ };
@@ -0,0 +1,47 @@
1
+ var r = function() {
2
+ var t = this, e = t.$createElement, i = t._self._c || e;
3
+ return i("div", {
4
+ style: {
5
+ width: `${t.width}px`,
6
+ height: `${t.height}px`
7
+ },
8
+ attrs: {
9
+ id: "routine-box"
10
+ }
11
+ }, [i("MXBackgroundGrid", {
12
+ attrs: {
13
+ width: t.canvasContainer.width,
14
+ height: t.canvasContainer.height,
15
+ "grid-config": t.gridConfig,
16
+ "layer-id": "MXRoutine_Grid"
17
+ }
18
+ }), i("div", {
19
+ attrs: {
20
+ id: "wave-from-box"
21
+ }
22
+ }), i("div", {
23
+ staticClass: "scroll-box",
24
+ style: {
25
+ width: `${t.width}px`,
26
+ height: `${t.height}px`
27
+ }
28
+ }, [i("vueScroll", {
29
+ ref: "vueScroll",
30
+ attrs: {
31
+ ops: t.vuescrollConfig
32
+ },
33
+ on: {
34
+ "handle-scroll": t.handleScroll
35
+ }
36
+ }, [i("div", {
37
+ staticClass: "scroll-empty",
38
+ style: {
39
+ width: `${t.vuescrollWH.width}px`,
40
+ height: `${t.vuescrollWH.height}px`
41
+ }
42
+ })])], 1)], 1);
43
+ }, h = [];
44
+ export {
45
+ r as render,
46
+ h as staticRenderFns
47
+ };
@@ -0,0 +1,6 @@
1
+ import o from "./index2.js";
2
+ import { withInstall as t } from "@costy-plus/utils";
3
+ const m = t(o);
4
+ export {
5
+ m as default
6
+ };
@@ -0,0 +1,6 @@
1
+ import MethodsMinix from '../HFECGWave/method';
2
+ declare const HFECGWave_base: import("vue-class-component/lib/declarations").VueClass<MethodsMinix>;
3
+ declare class HFECGWave extends HFECGWave_base {
4
+ }
5
+ declare const _sfc_main: typeof HFECGWave;
6
+ export default _sfc_main;
@@ -0,0 +1,26 @@
1
+ import "./style/index.css";
2
+ import "vue";
3
+ import f, { mixins as n } from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
4
+ import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js";
5
+ import a from "./components/Routine.js";
6
+ import v from "./components/Detail.js";
7
+ import l from "./method.js";
8
+ var _ = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = (i, r, t, o) => {
9
+ for (var e = o > 1 ? void 0 : o ? c(r, t) : r, m = i.length - 1, p; m >= 0; m--)
10
+ (p = i[m]) && (e = (o ? p(r, t, e) : p(e)) || e);
11
+ return o && e && _(r, t, e), e;
12
+ };
13
+ let s = class extends n(l) {
14
+ };
15
+ s = u([
16
+ f({
17
+ name: "HFECGWave",
18
+ components: {
19
+ Routine: a,
20
+ Detail: v
21
+ }
22
+ })
23
+ ], s);
24
+ export {
25
+ s as default
26
+ };
@@ -0,0 +1,36 @@
1
+ var i = function() {
2
+ var t = this, a = t.$createElement, e = t._self._c || a;
3
+ return e("div", {
4
+ style: {
5
+ width: `${t.width}px`,
6
+ height: `${t.height}px`
7
+ },
8
+ attrs: {
9
+ id: "hfecg-wave-form-main"
10
+ }
11
+ }, [e("Routine", {
12
+ attrs: {
13
+ width: t.routineWH.width,
14
+ height: t.routineWH.height,
15
+ "grid-config": t.gridConfig,
16
+ "format-data": t.formatData,
17
+ "vuescroll-config": t.vuescrollConfig
18
+ },
19
+ on: {
20
+ notifyHeardBeat: t.notifyHeardBeat
21
+ }
22
+ }), t.currentHeardBeat ? e("Detail", t._g({
23
+ attrs: {
24
+ width: t.detailWH.width,
25
+ height: t.detailWH.height,
26
+ "grid-config": t.gridConfig,
27
+ "format-data": t.formatData,
28
+ "lead-config": t.leadConfig,
29
+ "heard-beat": t.currentHeardBeat
30
+ }
31
+ }, t.$listeners)) : t._e()], 1);
32
+ }, r = [];
33
+ export {
34
+ i as render,
35
+ r as staticRenderFns
36
+ };
@@ -0,0 +1,24 @@
1
+ import t from "./index.vue_vue_type_script_lang.js";
2
+ import { staticRenderFns as e, render as r } from "./index.vue_vue_type_template_lang.js";
3
+ import l from "../../_virtual/vueComponentNormalizer.js";
4
+ const o = {};
5
+ var s = /* @__PURE__ */ l(
6
+ t,
7
+ r,
8
+ e,
9
+ !1,
10
+ i,
11
+ null,
12
+ null,
13
+ null
14
+ );
15
+ function i(c) {
16
+ for (let n in o)
17
+ this[n] = o[n];
18
+ }
19
+ const a = /* @__PURE__ */ function() {
20
+ return s.exports;
21
+ }();
22
+ export {
23
+ a as default
24
+ };
@@ -0,0 +1,86 @@
1
+ import l from "vue";
2
+ import f from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
3
+ import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js";
4
+ import { Prop as u } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js";
5
+ var d = Object.defineProperty, a = Object.getOwnPropertyDescriptor, i = (e, r, p, n) => {
6
+ for (var o = n > 1 ? void 0 : n ? a(r, p) : r, s = e.length - 1, h; s >= 0; s--)
7
+ (h = e[s]) && (o = (n ? h(r, p, o) : h(o)) || o);
8
+ return n && o && d(r, p, o), o;
9
+ };
10
+ let t = class extends l {
11
+ constructor() {
12
+ super(...arguments), this.currentHeardBeat = null;
13
+ }
14
+ get routineWH() {
15
+ return {
16
+ width: this.width,
17
+ height: this.height * 0.25
18
+ };
19
+ }
20
+ get detailWH() {
21
+ return {
22
+ width: this.width,
23
+ height: this.height - this.routineWH.height - 10
24
+ };
25
+ }
26
+ notifyHeardBeat(e) {
27
+ var r;
28
+ ((r = this.currentHeardBeat) == null ? void 0 : r.index) !== (e == null ? void 0 : e.index) && (this.currentHeardBeat = e);
29
+ }
30
+ };
31
+ i([
32
+ u({
33
+ required: !0,
34
+ type: Number,
35
+ validator: (e) => typeof e == "number"
36
+ })
37
+ ], t.prototype, "width", 2);
38
+ i([
39
+ u({
40
+ required: !0,
41
+ type: Number,
42
+ validator: (e) => typeof e == "number"
43
+ })
44
+ ], t.prototype, "height", 2);
45
+ i([
46
+ u({
47
+ required: !0
48
+ })
49
+ ], t.prototype, "gridConfig", 2);
50
+ i([
51
+ u({
52
+ required: !0
53
+ })
54
+ ], t.prototype, "formatData", 2);
55
+ i([
56
+ u({
57
+ default: () => ({
58
+ lineColor: "#000",
59
+ lineWidth: 1,
60
+ fontFamily: "\u5FAE\u8F6F\u96C5\u9ED1",
61
+ fontSize: 12
62
+ })
63
+ })
64
+ ], t.prototype, "leadConfig", 2);
65
+ i([
66
+ u({
67
+ default: () => ({
68
+ isShow: !0,
69
+ scrollPanel: {
70
+ scrollingY: !1
71
+ },
72
+ bar: {
73
+ keepShow: !0,
74
+ size: "6px"
75
+ }
76
+ })
77
+ })
78
+ ], t.prototype, "vuescrollConfig", 2);
79
+ t = i([
80
+ f({
81
+ name: "Methods"
82
+ })
83
+ ], t);
84
+ export {
85
+ t as default
86
+ };
@@ -0,0 +1,58 @@
1
+ #hfecg-wave-form-main #routine-box {
2
+ position: relative;
3
+ margin-bottom: 10px;
4
+ }
5
+ #hfecg-wave-form-main #routine-box #wave-from-box,
6
+ #hfecg-wave-form-main #routine-box .scroll-box {
7
+ position: absolute;
8
+ left: 0;
9
+ top: 0;
10
+ }
11
+ #hfecg-wave-form-main #routine-box #wave-from-box {
12
+ z-index: 1;
13
+ }
14
+ #hfecg-wave-form-main #routine-box .scroll-box {
15
+ z-index: 0;
16
+ }
17
+ #hfecg-wave-form-main #detail-main {
18
+ position: relative;
19
+ }
20
+ #hfecg-wave-form-main #detail-main .el-input-number .el-input__inner {
21
+ padding-left: 4px;
22
+ padding-right: 4px;
23
+ }
24
+ #hfecg-wave-form-main #detail-main .detail-table {
25
+ position: absolute;
26
+ right: 0;
27
+ top: 0;
28
+ width: 180px;
29
+ font-size: 12px;
30
+ }
31
+ #hfecg-wave-form-main #detail-main .detail-table .el-row:first-child {
32
+ background-color: #f8f8f9;
33
+ color: #495060;
34
+ }
35
+ #hfecg-wave-form-main #detail-main .detail-table .el-row:last-child .el-col {
36
+ border-bottom: 1px solid #e9eaec;
37
+ }
38
+ #hfecg-wave-form-main #detail-main .detail-table .el-col {
39
+ display: flex;
40
+ justify-content: center;
41
+ align-items: center;
42
+ font-size: 12px;
43
+ border: 1px solid #e9eaec;
44
+ border-bottom: 0;
45
+ }
46
+ #hfecg-wave-form-main #detail-main .detail-table .el-col:not(:first-child) {
47
+ border-left: 0;
48
+ }
49
+ #hfecg-wave-form-main #detail-main .mx-background-grid-box {
50
+ position: absolute;
51
+ left: -999999px;
52
+ top: -999999px;
53
+ }
54
+ #hfecg-wave-form-main #detail-main #detail-from-box {
55
+ position: absolute;
56
+ left: 0;
57
+ top: 0;
58
+ }
@@ -0,0 +1,24 @@
1
+ import o from "./index.vue_vue_type_script_lang.js";
2
+ import { staticRenderFns as t, render as r } from "./index.vue_vue_type_template_lang.js";
3
+ import i from "../../_virtual/vueComponentNormalizer.js";
4
+ const e = {};
5
+ var l = /* @__PURE__ */ i(
6
+ o,
7
+ r,
8
+ t,
9
+ !1,
10
+ s,
11
+ null,
12
+ null,
13
+ null
14
+ );
15
+ function s(a) {
16
+ for (let n in e)
17
+ this[n] = e[n];
18
+ }
19
+ const u = /* @__PURE__ */ function() {
20
+ return l.exports;
21
+ }();
22
+ export {
23
+ u as default
24
+ };
@@ -0,0 +1,11 @@
1
+ import Methods from './medthod';
2
+ declare const MXMagnifierWave_base: import("vue-class-component/lib/declarations").VueClass<Methods>;
3
+ declare class MXMagnifierWave extends MXMagnifierWave_base {
4
+ protected created(): void;
5
+ protected mounted(): void;
6
+ protected init(): void;
7
+ protected initWaveFormPeer(): void;
8
+ protected combinationDrawing(): void;
9
+ }
10
+ declare const _sfc_main: typeof MXMagnifierWave;
11
+ export default _sfc_main;
@@ -0,0 +1,49 @@
1
+ import "./style/index.css";
2
+ import "vue";
3
+ import m, { mixins as d } from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
4
+ import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js";
5
+ import h from "../BackgroundGrid/index2.js";
6
+ import { init as c } from "zrender";
7
+ import f from "./medthod.js";
8
+ var v = Object.defineProperty, g = Object.getOwnPropertyDescriptor, p = (i, t, r, n) => {
9
+ for (var e = n > 1 ? void 0 : n ? g(t, r) : t, o = i.length - 1, a; o >= 0; o--)
10
+ (a = i[o]) && (e = (n ? a(t, r, e) : a(e)) || e);
11
+ return n && e && v(t, r, e), e;
12
+ };
13
+ let s = class extends d(f) {
14
+ created() {
15
+ this.initConfig();
16
+ }
17
+ mounted() {
18
+ this.init();
19
+ }
20
+ init() {
21
+ this.magnifierWave = document.getElementById("mx-magnifier-wave") || null, this.waveBoxAddToEventListener(), this.initWaveFormPeer(), this.combinationDrawing();
22
+ }
23
+ initWaveFormPeer() {
24
+ const i = document.getElementById("float-wave-from-box");
25
+ this.sceneIns = c(i, {
26
+ width: this.width / 2,
27
+ height: this.height,
28
+ devicePixelRatio: 2
29
+ });
30
+ const t = document.getElementById(
31
+ "MXMagnifierGrid"
32
+ );
33
+ this.AssistCtx = t.getContext("2d");
34
+ }
35
+ combinationDrawing() {
36
+ this.createLeadHead(), this.createLeadName(), this.createWaveFrom();
37
+ }
38
+ };
39
+ s = p([
40
+ m({
41
+ name: "MXMagnifierWave",
42
+ components: {
43
+ MXBackgroundGrid: h
44
+ }
45
+ })
46
+ ], s);
47
+ export {
48
+ s as default
49
+ };