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,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,60 @@
1
+ import l from "vue";
2
+ import m 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 o } 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, y = Object.getOwnPropertyDescriptor, r = (p, i, f, u) => {
6
+ for (var t = u > 1 ? void 0 : u ? y(i, f) : i, n = p.length - 1, a; n >= 0; n--)
7
+ (a = p[n]) && (t = (u ? a(i, f, t) : a(t)) || t);
8
+ return u && t && d(i, f, t), t;
9
+ };
10
+ let e = class extends l {
11
+ };
12
+ r([
13
+ o({
14
+ required: !0,
15
+ type: Number,
16
+ validator: (p) => typeof p == "number"
17
+ })
18
+ ], e.prototype, "width", 2);
19
+ r([
20
+ o({
21
+ required: !0,
22
+ type: Number,
23
+ validator: (p) => typeof p == "number"
24
+ })
25
+ ], e.prototype, "height", 2);
26
+ r([
27
+ o({
28
+ required: !0
29
+ })
30
+ ], e.prototype, "gridConfig", 2);
31
+ r([
32
+ o({
33
+ default: "MXGrid",
34
+ type: String
35
+ })
36
+ ], e.prototype, "layerId", 2);
37
+ r([
38
+ o({
39
+ default: 5,
40
+ type: Number
41
+ })
42
+ ], e.prototype, "cellPoints", 2);
43
+ r([
44
+ o({
45
+ default: 1
46
+ })
47
+ ], e.prototype, "magnification", 2);
48
+ r([
49
+ o({
50
+ default: 0
51
+ })
52
+ ], e.prototype, "model", 2);
53
+ e = r([
54
+ m({
55
+ name: "PropsMinix"
56
+ })
57
+ ], e);
58
+ export {
59
+ e as default
60
+ };
@@ -0,0 +1,6 @@
1
+ import r from "./index2.js";
2
+ import { withInstall as o } from "@costy-plus/utils";
3
+ const d = o(r);
4
+ export {
5
+ d as default
6
+ };
@@ -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,118 @@
1
+ import "vue";
2
+ import w, { mixins as m } 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 { Watch as d } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js";
5
+ import { debounce as C } from "@costy-plus/utils";
6
+ import I from "./PropsMinix.js";
7
+ var p = Object.defineProperty, u = Object.getOwnPropertyDescriptor, g = (s, i, t, h) => {
8
+ for (var e = h > 1 ? void 0 : h ? u(i, t) : i, n = s.length - 1, a; n >= 0; n--)
9
+ (a = s[n]) && (e = (h ? a(i, t, e) : a(e)) || e);
10
+ return h && e && p(i, t, e), e;
11
+ };
12
+ let l = class extends m(I) {
13
+ constructor() {
14
+ super(...arguments), this.canvasIns = Object.freeze(null);
15
+ }
16
+ watchWidth() {
17
+ this.againInitGrid();
18
+ }
19
+ watchHeight() {
20
+ this.againInitGrid();
21
+ }
22
+ watchGridConfig() {
23
+ this.againInitGrid();
24
+ }
25
+ get cellMg() {
26
+ return this.gridConfig.cellMg * this.magnification;
27
+ }
28
+ mounted() {
29
+ this.initGrid();
30
+ }
31
+ againInitGrid() {
32
+ this.initGrid();
33
+ }
34
+ initGrid() {
35
+ if (this.canvasIns)
36
+ this.canvasIns.clearRect(0, 0, this.width, this.height);
37
+ else {
38
+ const s = document.getElementById(this.layerId);
39
+ this.canvasIns = s.getContext("2d");
40
+ }
41
+ this.model === 0 ? (this.drawPoints(), this.drawRowAndCol()) : this.model === 1 && this.drawMesh();
42
+ }
43
+ drawPoints() {
44
+ var a, r;
45
+ let i = this.gridConfig.lineWidth === 1 ? 0.5 : 0, t = this.cellMg;
46
+ const h = [], e = this.magnification > 1 ? this.gridConfig.lineWidth + 1 : this.gridConfig.lineWidth;
47
+ for (this.beforeCtxDraw(
48
+ this.canvasIns,
49
+ this.gridConfig.smallCellColor,
50
+ e
51
+ ); t < this.width; )
52
+ h.push(t), t % this.cellMg === 0 ? t += e : t += this.cellMg - e;
53
+ let n = 0;
54
+ for (; i < this.height; ) {
55
+ if (n % this.cellPoints !== 0)
56
+ for (let o = 0; o < h.length; o++)
57
+ (o + 2) % this.cellPoints !== 0 && o % 2 === 0 && ((a = this.canvasIns) == null || a.moveTo(h[o], i), (r = this.canvasIns) == null || r.lineTo(h[o + 1], i));
58
+ i += this.cellMg, n++;
59
+ }
60
+ this.afterDrawOver(this.canvasIns);
61
+ }
62
+ drawRowAndCol() {
63
+ var e, n, a, r;
64
+ const s = this.gridConfig.lineWidth === 1 ? 0.5 : 0;
65
+ let i = s, t = s, h = 0;
66
+ for (this.beforeCtxDraw(
67
+ this.canvasIns,
68
+ this.gridConfig.bigCellColor,
69
+ this.gridConfig.lineWidth
70
+ ); i < this.width || t < this.height; )
71
+ h % this.cellPoints === 0 && ((e = this.canvasIns) == null || e.moveTo(i, 0), (n = this.canvasIns) == null || n.lineTo(i, this.height), (a = this.canvasIns) == null || a.moveTo(0, t), (r = this.canvasIns) == null || r.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
72
+ this.afterDrawOver(this.canvasIns);
73
+ }
74
+ drawMesh() {
75
+ var e, n, a, r, o, c, f, v;
76
+ const s = this.gridConfig.lineWidth === 1 ? 0.5 : 0;
77
+ let i = s, t = s, h = 0;
78
+ for (this.beforeCtxDraw(
79
+ this.canvasIns,
80
+ this.gridConfig.smallCellColor,
81
+ this.gridConfig.lineWidth
82
+ ); i < this.width || t < this.height; )
83
+ h % this.cellPoints !== 0 && ((e = this.canvasIns) == null || e.moveTo(i, 0), (n = this.canvasIns) == null || n.lineTo(i, this.height), (a = this.canvasIns) == null || a.moveTo(0, t), (r = this.canvasIns) == null || r.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
84
+ for (this.afterDrawOver(this.canvasIns), i = t = s, h = 0, this.beforeCtxDraw(
85
+ this.canvasIns,
86
+ this.gridConfig.bigCellColor,
87
+ this.gridConfig.lineWidth
88
+ ); i < this.width || t < this.height; )
89
+ h % this.cellPoints === 0 && ((o = this.canvasIns) == null || o.moveTo(i, 0), (c = this.canvasIns) == null || c.lineTo(i, this.height), (f = this.canvasIns) == null || f.moveTo(0, t), (v = this.canvasIns) == null || v.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
90
+ this.afterDrawOver(this.canvasIns);
91
+ }
92
+ beforeCtxDraw(s, i, t) {
93
+ s.save(), s.beginPath(), s.strokeStyle = i, s.lineWidth = t;
94
+ }
95
+ afterDrawOver(s) {
96
+ s.stroke(), s.restore();
97
+ }
98
+ };
99
+ g([
100
+ d("width")
101
+ ], l.prototype, "watchWidth", 1);
102
+ g([
103
+ d("height")
104
+ ], l.prototype, "watchHeight", 1);
105
+ g([
106
+ d("gridConfig", { deep: !0 })
107
+ ], l.prototype, "watchGridConfig", 1);
108
+ g([
109
+ C(200)
110
+ ], l.prototype, "againInitGrid", 1);
111
+ l = g([
112
+ w({
113
+ name: "MXBackgroundGrid"
114
+ })
115
+ ], l);
116
+ export {
117
+ l as default
118
+ };
@@ -0,0 +1,20 @@
1
+ var i = function() {
2
+ var t = this, r = t.$createElement, e = t._self._c || r;
3
+ return e("div", {
4
+ staticClass: "mx-background-grid-box",
5
+ style: {
6
+ width: `${t.width}px`,
7
+ height: `${t.height}px`
8
+ }
9
+ }, [e("canvas", {
10
+ attrs: {
11
+ id: t.layerId,
12
+ width: t.width,
13
+ height: t.height
14
+ }
15
+ })]);
16
+ }, a = [];
17
+ export {
18
+ i as render,
19
+ a as staticRenderFns
20
+ };
@@ -0,0 +1,24 @@
1
+ import t from "./index.vue_vue_type_script_lang.js";
2
+ import { staticRenderFns as r, render as e } from "./index.vue_vue_type_template_lang.js";
3
+ import i from "../../_virtual/vueComponentNormalizer.js";
4
+ const o = {};
5
+ var l = /* @__PURE__ */ i(
6
+ t,
7
+ e,
8
+ r,
9
+ !1,
10
+ s,
11
+ null,
12
+ null,
13
+ null
14
+ );
15
+ function s(c) {
16
+ for (let n in o)
17
+ this[n] = o[n];
18
+ }
19
+ const a = /* @__PURE__ */ function() {
20
+ return l.exports;
21
+ }();
22
+ export {
23
+ a as default
24
+ };
@@ -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,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,90 @@
1
+ import "./style/index.css";
2
+ import "vue";
3
+ import l, { mixins as c } 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 { Watch as o } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js";
6
+ import d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js";
7
+ import m from "../BackgroundGrid/index2.js";
8
+ import f from "../MeasuringRuler/index2.js";
9
+ import g from "../ParallelRuler/index2.js";
10
+ import u from "../MagnifierWave/index.js";
11
+ import w from "../EnlargeWave/index2.js";
12
+ import v from "./method.js";
13
+ var M = Object.defineProperty, C = Object.getOwnPropertyDescriptor, a = (e, t, h, n) => {
14
+ for (var i = n > 1 ? void 0 : n ? C(t, h) : t, s = e.length - 1, p; s >= 0; s--)
15
+ (p = e[s]) && (i = (n ? p(t, h, i) : p(i)) || i);
16
+ return n && i && M(t, h, i), i;
17
+ };
18
+ let r = class extends c(v) {
19
+ watchFormatEcgData() {
20
+ var e;
21
+ (e = this.sceneIns) == null || e.clear(), this.init();
22
+ }
23
+ watchVuescrollConfig() {
24
+ this.repaint();
25
+ }
26
+ watchLeadHeadConfig() {
27
+ var e, t;
28
+ (e = this.leadHeadGroup) == null || e.removeAll(), (t = this.sceneIns) == null || t.remove(this.leadHeadGroup), this.drawLeadHead();
29
+ }
30
+ watchLeadModel() {
31
+ this.repaint();
32
+ }
33
+ watchWidth() {
34
+ this.repaint();
35
+ }
36
+ watchHeight() {
37
+ this.repaint();
38
+ }
39
+ watchHeartFight() {
40
+ var e;
41
+ (e = this.sceneIns) == null || e.clear(), this.init();
42
+ }
43
+ mounted() {
44
+ this.init();
45
+ }
46
+ repaint() {
47
+ var e, t;
48
+ (e = this.sceneIns) == null || e.clear(), (t = this.sceneIns) == null || t.resize({
49
+ width: this.canvasContainer.width,
50
+ height: this.canvasContainer.height
51
+ }), this.combinationDrawing();
52
+ }
53
+ };
54
+ a([
55
+ o("formatEcgData", { deep: !0 })
56
+ ], r.prototype, "watchFormatEcgData", 1);
57
+ a([
58
+ o("vuescrollConfig", { deep: !0 })
59
+ ], r.prototype, "watchVuescrollConfig", 1);
60
+ a([
61
+ o("leadHeadConfig", { deep: !0 })
62
+ ], r.prototype, "watchLeadHeadConfig", 1);
63
+ a([
64
+ o("leadModel", { deep: !0 })
65
+ ], r.prototype, "watchLeadModel", 1);
66
+ a([
67
+ o("width")
68
+ ], r.prototype, "watchWidth", 1);
69
+ a([
70
+ o("height")
71
+ ], r.prototype, "watchHeight", 1);
72
+ a([
73
+ o("singleModeInfo", { deep: !0 })
74
+ ], r.prototype, "watchHeartFight", 1);
75
+ r = a([
76
+ l({
77
+ name: "ECGWaveForm",
78
+ components: {
79
+ vueScroll: d,
80
+ MXBackgroundGrid: m,
81
+ MXMeasuringRuler: f,
82
+ MXParallelRuler: g,
83
+ MXMagnifierWave: u,
84
+ MXEnlargeWave: w
85
+ }
86
+ })
87
+ ], r);
88
+ export {
89
+ r as default
90
+ };
@@ -0,0 +1,118 @@
1
+ var p = function() {
2
+ var t, i, o, r, l, s, n, d, g, v, c, h, a = this, f = a.$createElement, e = a._self._c || f;
3
+ return e("div", {
4
+ style: {
5
+ width: `${a.width}px`,
6
+ height: `${a.height}px`
7
+ },
8
+ attrs: {
9
+ id: "ecg-wave-form-main"
10
+ }
11
+ }, [e("MXBackgroundGrid", {
12
+ attrs: {
13
+ width: a.canvasContainer.width,
14
+ height: a.canvasContainer.height,
15
+ "grid-config": a.gridConfig,
16
+ "layer-id": "MXGrid"
17
+ }
18
+ }), a.measurRulerConfig.isShow ? e("MXMeasuringRuler", a._g({
19
+ staticClass: "measuring-ruler",
20
+ attrs: {
21
+ width: a.canvasContainer.width,
22
+ height: a.canvasContainer.height,
23
+ "cell-mg": a.gridConfig.cellMg,
24
+ "speed-value": ((t = a.formatEcgData) === null || t === void 0 ? void 0 : t.speed) || 0,
25
+ sens: a.formatEcgData.sens
26
+ }
27
+ }, a.$listeners)) : a._e(), a.paralleRulerConfig.isShow ? e("MXParallelRuler", a._g({
28
+ staticClass: "parallel-ruler",
29
+ attrs: {
30
+ width: a.canvasContainer.width,
31
+ height: a.canvasContainer.height,
32
+ "cell-mg": a.gridConfig.cellMg,
33
+ "speed-value": ((i = a.formatEcgData) === null || i === void 0 ? void 0 : i.speed) || 0,
34
+ sens: a.formatEcgData.sens,
35
+ "heart-rate": a.ventricularRate
36
+ }
37
+ }, a.$listeners)) : a._e(), a.magnifierRulerConfig.isShow ? e("MXMagnifierWave", {
38
+ staticClass: "magnifier-wave",
39
+ attrs: {
40
+ width: a.canvasContainer.width,
41
+ height: a.canvasContainer.height,
42
+ "grid-config": a.gridConfig,
43
+ "speed-value": ((o = a.formatEcgData) === null || o === void 0 ? void 0 : o.speed) || 0,
44
+ sens: a.formatEcgData.sens,
45
+ step: ((r = a.formatEcgData) === null || r === void 0 ? void 0 : r.step) || 0,
46
+ "lead-head-config": a.leadHeadConfig,
47
+ "wave-data": a.waveDataCopy,
48
+ "add-wave-data": a.addWaveDataCopy,
49
+ "single-wave-data": a.singleWaveDataCopy,
50
+ "long-lead-config": a.longLeadConfig,
51
+ "split-block-height": a.splitBlockHeight,
52
+ "split-point": a.splitPoint,
53
+ "lead-config": a.leadConfig,
54
+ "heart-fight": a.heartFight,
55
+ "normal-lead-names": ((l = a.formatEcgData) === null || l === void 0 ? void 0 : l.processedData.otherParams.LeadName) || []
56
+ }
57
+ }) : a._e(), a.isShowEnlargeWave ? e("MXEnlargeWave", a._g({
58
+ staticClass: "enlarge-wave",
59
+ attrs: {
60
+ "is-show-enlarge-wave": a.isShowEnlargeWave,
61
+ width: a.width,
62
+ height: a.height,
63
+ "grid-config": a.gridConfig,
64
+ "speed-value": ((s = a.formatEcgData) === null || s === void 0 ? void 0 : s.speed) || 0,
65
+ sens: a.formatEcgData.sens,
66
+ step: ((n = a.formatEcgData) === null || n === void 0 ? void 0 : n.step) || 0,
67
+ "sample-rate": ((d = a.formatEcgData) === null || d === void 0 ? void 0 : d.processedData.otherParams.SampleRate) || 0,
68
+ sensitivity: ((g = a.formatEcgData) === null || g === void 0 ? void 0 : g.processedData.otherParams.Sensitivity) || 0,
69
+ "normal-data": ((v = a.formatEcgData) === null || v === void 0 ? void 0 : v.processedData.originData.Data) || [],
70
+ "complex-data": ((c = a.formatEcgData) === null || c === void 0 ? void 0 : c.processedData.originData.ComplexData) || [],
71
+ "lead-name-list": a.leadNameList,
72
+ "lead-head-config": a.leadHeadConfig,
73
+ "active-lead-idx": a.activeLeadIdx,
74
+ "active-lead-analyse-value": a.activeLeadAnalyseValue,
75
+ "analyse-value": ((h = a.formatEcgData) === null || h === void 0 ? void 0 : h.processedData.otherParams.AnalyseValue) || [],
76
+ "enlarge-wave-mode": a.enlargeWaveMode,
77
+ "conventional-e-c-g-config": a.conventionalECGConfig,
78
+ gains: a.gains,
79
+ speeds: a.speeds
80
+ },
81
+ on: {
82
+ "update:isShowEnlargeWave": function(m) {
83
+ a.isShowEnlargeWave = m;
84
+ },
85
+ "update:is-show-enlarge-wave": function(m) {
86
+ a.isShowEnlargeWave = m;
87
+ }
88
+ }
89
+ }, a.$listeners)) : a._e(), e("div", {
90
+ attrs: {
91
+ id: "wave-from-box"
92
+ }
93
+ }), e("div", {
94
+ staticClass: "scroll-box",
95
+ style: {
96
+ width: `${a.width}px`,
97
+ height: `${a.height}px`
98
+ }
99
+ }, [e("vueScroll", {
100
+ ref: "vueScroll",
101
+ attrs: {
102
+ ops: a.vuescrollConfig
103
+ },
104
+ on: {
105
+ "handle-scroll": a.handleScroll
106
+ }
107
+ }, [e("div", {
108
+ staticClass: "scroll-empty",
109
+ style: {
110
+ width: `${a.vuescrollWH.width}px`,
111
+ height: `${a.vuescrollWH.height}px`
112
+ }
113
+ })])], 1)], 1);
114
+ }, u = [];
115
+ export {
116
+ p as render,
117
+ u as staticRenderFns
118
+ };
@@ -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 n = {};
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(m) {
16
+ for (let o in n)
17
+ this[o] = n[o];
18
+ }
19
+ const a = /* @__PURE__ */ function() {
20
+ return s.exports;
21
+ }();
22
+ export {
23
+ a as default
24
+ };