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.
- package/README.md +1 -0
- package/dist/es/_virtual/_commonjsHelpers.js +4 -0
- package/dist/es/_virtual/vueComponentNormalizer.js +30 -0
- package/dist/es/_virtual/vuescroll-native.js +4 -0
- package/dist/es/index.d.ts +5 -0
- package/dist/es/index.js +26 -0
- 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
- package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js +1 -0
- package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js +12 -0
- package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js +13 -0
- package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/helpers/metadata.js +10 -0
- package/dist/es/node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js +1188 -0
- package/dist/es/src/BackgroundGrid/PropsMinix.d.ts +12 -0
- package/dist/es/src/BackgroundGrid/PropsMinix.js +60 -0
- package/dist/es/src/BackgroundGrid/index.js +6 -0
- package/dist/es/src/BackgroundGrid/index.vue.d.ts +19 -0
- package/dist/es/src/BackgroundGrid/index.vue_vue_type_script_lang.js +118 -0
- package/dist/es/src/BackgroundGrid/index.vue_vue_type_template_lang.js +20 -0
- package/dist/es/src/BackgroundGrid/index2.js +24 -0
- package/dist/es/src/ECGWave/index.js +6 -0
- package/dist/es/src/ECGWave/index.vue.d.ts +15 -0
- package/dist/es/src/ECGWave/index.vue_vue_type_script_lang.js +90 -0
- package/dist/es/src/ECGWave/index.vue_vue_type_template_lang.js +118 -0
- package/dist/es/src/ECGWave/index2.js +24 -0
- package/dist/es/src/ECGWave/method.js +841 -0
- package/dist/es/src/ECGWave/style/index.css +46 -0
- package/dist/es/src/EnlargeWave/index.js +6 -0
- package/dist/es/src/EnlargeWave/index.vue.d.ts +10 -0
- package/dist/es/src/EnlargeWave/index.vue_vue_type_script_lang.js +56 -0
- package/dist/es/src/EnlargeWave/index.vue_vue_type_template_lang.js +178 -0
- package/dist/es/src/EnlargeWave/index2.js +24 -0
- package/dist/es/src/EnlargeWave/medthod.d.ts +185 -0
- package/dist/es/src/EnlargeWave/medthod.js +753 -0
- package/dist/es/src/EnlargeWave/style/index.css +93 -0
- package/dist/es/src/FCGWave/components/And2V5LeadPower.js +24 -0
- package/dist/es/src/FCGWave/components/And2V5LeadPower.vue_vue_type_script_lang.js +1114 -0
- package/dist/es/src/FCGWave/components/And2V5LeadPower.vue_vue_type_template_lang.js +31 -0
- package/dist/es/src/FCGWave/components/LeadPower12.js +24 -0
- package/dist/es/src/FCGWave/components/LeadPower12.vue_vue_type_script_lang.js +376 -0
- package/dist/es/src/FCGWave/components/LeadPower12.vue_vue_type_template_lang.js +31 -0
- package/dist/es/src/FCGWave/components/PowerHistogram.js +24 -0
- package/dist/es/src/FCGWave/components/PowerHistogram.vue_vue_type_script_lang.js +256 -0
- package/dist/es/src/FCGWave/components/PowerHistogram.vue_vue_type_template_lang.js +31 -0
- package/dist/es/src/FCGWave/index.js +6 -0
- package/dist/es/src/FCGWave/index.vue.d.ts +6 -0
- package/dist/es/src/FCGWave/index.vue_vue_type_script_lang.js +28 -0
- package/dist/es/src/FCGWave/index.vue_vue_type_template_lang.js +38 -0
- package/dist/es/src/FCGWave/index2.js +24 -0
- package/dist/es/src/FCGWave/method.d.ts +49 -0
- package/dist/es/src/FCGWave/method.js +94 -0
- package/dist/es/src/FCGWave/style/index.css +43 -0
- package/dist/es/src/HFECGWave/components/Detail.js +24 -0
- package/dist/es/src/HFECGWave/components/Detail.vue_vue_type_script_lang.js +293 -0
- package/dist/es/src/HFECGWave/components/Detail.vue_vue_type_template_lang.js +134 -0
- package/dist/es/src/HFECGWave/components/Routine.js +24 -0
- package/dist/es/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +302 -0
- package/dist/es/src/HFECGWave/components/Routine.vue_vue_type_template_lang.js +47 -0
- package/dist/es/src/HFECGWave/index.js +6 -0
- package/dist/es/src/HFECGWave/index.vue.d.ts +6 -0
- package/dist/es/src/HFECGWave/index.vue_vue_type_script_lang.js +26 -0
- package/dist/es/src/HFECGWave/index.vue_vue_type_template_lang.js +36 -0
- package/dist/es/src/HFECGWave/index2.js +24 -0
- package/dist/es/src/HFECGWave/method.js +86 -0
- package/dist/es/src/HFECGWave/style/index.css +58 -0
- package/dist/es/src/MagnifierWave/index.js +24 -0
- package/dist/es/src/MagnifierWave/index.vue.d.ts +11 -0
- package/dist/es/src/MagnifierWave/index.vue_vue_type_script_lang.js +49 -0
- package/dist/es/src/MagnifierWave/index.vue_vue_type_template_lang.js +34 -0
- package/dist/es/src/MagnifierWave/medthod.d.ts +78 -0
- package/dist/es/src/MagnifierWave/medthod.js +276 -0
- package/dist/es/src/MagnifierWave/style/index.css +22 -0
- package/dist/es/src/MeasuringRuler/index.js +6 -0
- package/dist/es/src/MeasuringRuler/index.vue.d.ts +47 -0
- package/dist/es/src/MeasuringRuler/index.vue_vue_type_script_lang.js +300 -0
- package/dist/es/src/MeasuringRuler/index.vue_vue_type_template_lang.js +17 -0
- package/dist/es/src/MeasuringRuler/index2.js +24 -0
- package/dist/es/src/MeasuringRuler/style/index.css +0 -0
- package/dist/es/src/ParallelRuler/index.js +6 -0
- package/dist/es/src/ParallelRuler/index.vue.d.ts +46 -0
- package/dist/es/src/ParallelRuler/index.vue_vue_type_script_lang.js +312 -0
- package/dist/es/src/ParallelRuler/index.vue_vue_type_template_lang.js +17 -0
- package/dist/es/src/ParallelRuler/index2.js +24 -0
- package/dist/es/src/Text/index.js +6 -0
- package/dist/es/src/Text/index.vue.d.ts +7 -0
- package/dist/es/src/Text/index.vue_vue_type_script_lang.js +26 -0
- package/dist/es/src/Text/index.vue_vue_type_template_lang.js +10 -0
- package/dist/es/src/Text/index2.js +24 -0
- package/dist/es/src/Text/style/index.css +6 -0
- package/dist/es/src/Text/style/other.css +3 -0
- package/dist/es/src/index.d.ts +8 -0
- package/dist/es/src/index.js +18 -0
- package/dist/es/static/images/heart.jpg +0 -0
- package/dist/es/static/images/heartSection.jpg +0 -0
- package/dist/es/typings/Common.d.ts +140 -0
- package/dist/es/typings/MXBackgroundGrid.d.ts +24 -0
- package/dist/es/typings/MXECGWaveComponents.d.ts +151 -0
- package/dist/es/typings/MXFCGWaveComponents.d.ts +10 -0
- package/dist/es/typings/MXMeasuringRuler.d.ts +14 -0
- package/dist/es/typings/MXParallelRuler.d.ts +14 -0
- package/dist/es/typings/component.d.ts +3 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +1 -0
- package/dist/lib/_virtual/vueComponentNormalizer.js +1 -0
- package/dist/lib/_virtual/vuescroll-native.js +1 -0
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/index.js +1 -0
- 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
- package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js +1 -0
- package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js +1 -0
- package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js +1 -0
- package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/helpers/metadata.js +1 -0
- package/dist/lib/node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js +4 -0
- package/dist/lib/src/BackgroundGrid/PropsMinix.d.ts +12 -0
- package/dist/lib/src/BackgroundGrid/PropsMinix.js +1 -0
- package/dist/lib/src/BackgroundGrid/index.js +1 -0
- package/dist/lib/src/BackgroundGrid/index.vue.d.ts +19 -0
- package/dist/lib/src/BackgroundGrid/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/BackgroundGrid/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/BackgroundGrid/index2.js +1 -0
- package/dist/lib/src/ECGWave/index.js +1 -0
- package/dist/lib/src/ECGWave/index.vue.d.ts +15 -0
- package/dist/lib/src/ECGWave/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/ECGWave/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/ECGWave/index2.js +1 -0
- package/dist/lib/src/ECGWave/method.js +1 -0
- package/dist/lib/src/ECGWave/style/index.css +46 -0
- package/dist/lib/src/EnlargeWave/index.js +1 -0
- package/dist/lib/src/EnlargeWave/index.vue.d.ts +10 -0
- package/dist/lib/src/EnlargeWave/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/EnlargeWave/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/EnlargeWave/index2.js +1 -0
- package/dist/lib/src/EnlargeWave/medthod.d.ts +185 -0
- package/dist/lib/src/EnlargeWave/medthod.js +1 -0
- package/dist/lib/src/EnlargeWave/style/index.css +93 -0
- package/dist/lib/src/FCGWave/components/And2V5LeadPower.js +1 -0
- package/dist/lib/src/FCGWave/components/And2V5LeadPower.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/FCGWave/components/And2V5LeadPower.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/FCGWave/components/LeadPower12.js +1 -0
- package/dist/lib/src/FCGWave/components/LeadPower12.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/FCGWave/components/LeadPower12.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/FCGWave/components/PowerHistogram.js +1 -0
- package/dist/lib/src/FCGWave/components/PowerHistogram.vue_vue_type_script_lang.js +3 -0
- package/dist/lib/src/FCGWave/components/PowerHistogram.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/FCGWave/index.js +1 -0
- package/dist/lib/src/FCGWave/index.vue.d.ts +6 -0
- package/dist/lib/src/FCGWave/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/FCGWave/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/FCGWave/index2.js +1 -0
- package/dist/lib/src/FCGWave/method.d.ts +49 -0
- package/dist/lib/src/FCGWave/method.js +1 -0
- package/dist/lib/src/FCGWave/style/index.css +43 -0
- package/dist/lib/src/HFECGWave/components/Detail.js +1 -0
- package/dist/lib/src/HFECGWave/components/Detail.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/HFECGWave/components/Detail.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/HFECGWave/components/Routine.js +1 -0
- package/dist/lib/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/HFECGWave/components/Routine.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/HFECGWave/index.js +1 -0
- package/dist/lib/src/HFECGWave/index.vue.d.ts +6 -0
- package/dist/lib/src/HFECGWave/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/HFECGWave/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/HFECGWave/index2.js +1 -0
- package/dist/lib/src/HFECGWave/method.js +1 -0
- package/dist/lib/src/HFECGWave/style/index.css +58 -0
- package/dist/lib/src/MagnifierWave/index.js +1 -0
- package/dist/lib/src/MagnifierWave/index.vue.d.ts +11 -0
- package/dist/lib/src/MagnifierWave/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/MagnifierWave/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/MagnifierWave/medthod.d.ts +78 -0
- package/dist/lib/src/MagnifierWave/medthod.js +1 -0
- package/dist/lib/src/MagnifierWave/style/index.css +22 -0
- package/dist/lib/src/MeasuringRuler/index.js +1 -0
- package/dist/lib/src/MeasuringRuler/index.vue.d.ts +47 -0
- package/dist/lib/src/MeasuringRuler/index.vue_vue_type_script_lang.js +3 -0
- package/dist/lib/src/MeasuringRuler/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/MeasuringRuler/index2.js +1 -0
- package/dist/lib/src/MeasuringRuler/style/index.css +0 -0
- package/dist/lib/src/ParallelRuler/index.js +1 -0
- package/dist/lib/src/ParallelRuler/index.vue.d.ts +46 -0
- package/dist/lib/src/ParallelRuler/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/ParallelRuler/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/ParallelRuler/index2.js +1 -0
- package/dist/lib/src/Text/index.js +1 -0
- package/dist/lib/src/Text/index.vue.d.ts +7 -0
- package/dist/lib/src/Text/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/Text/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/Text/index2.js +1 -0
- package/dist/lib/src/Text/style/index.css +6 -0
- package/dist/lib/src/Text/style/other.css +3 -0
- package/dist/lib/src/index.d.ts +8 -0
- package/dist/lib/src/index.js +1 -0
- package/dist/lib/static/images/heart.jpg +0 -0
- package/dist/lib/static/images/heartSection.jpg +0 -0
- package/dist/lib/typings/Common.d.ts +140 -0
- package/dist/lib/typings/MXBackgroundGrid.d.ts +24 -0
- package/dist/lib/typings/MXECGWaveComponents.d.ts +151 -0
- package/dist/lib/typings/MXFCGWaveComponents.d.ts +10 -0
- package/dist/lib/typings/MXMeasuringRuler.d.ts +14 -0
- package/dist/lib/typings/MXParallelRuler.d.ts +14 -0
- package/dist/lib/typings/component.d.ts +3 -0
- 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,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,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
|
+
};
|