costy-plus 1.0.46-0 → 1.0.48-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/dist/es/src/BackgroundGrid/index.vue.d.ts +3 -1
- package/dist/es/src/BackgroundGrid/index.vue_vue_type_script_lang.js +24 -19
- package/dist/es/src/CommonWaveForm/index.vue.d.ts +4 -1
- package/dist/es/src/CommonWaveForm/index.vue_vue_type_script_lang.js +72 -61
- package/dist/es/src/CommonWaveForm/method.d.ts +3 -0
- package/dist/es/src/CommonWaveForm/method.js +130 -114
- package/dist/es/src/EcgWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/es/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/BackgroundGrid/index.vue.d.ts +3 -1
- package/dist/lib/src/BackgroundGrid/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/CommonWaveForm/index.vue.d.ts +4 -1
- package/dist/lib/src/CommonWaveForm/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/CommonWaveForm/method.d.ts +3 -0
- package/dist/lib/src/CommonWaveForm/method.js +1 -1
- package/dist/lib/src/EcgWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +1 -1
- package/package.json +1 -1
- /package/dist/es/node_modules/.pnpm/{vuescroll@4.17.5_vue@2.7.14 → vuescroll@4.17.5_vue@2.7.15}/node_modules/vuescroll/dist/vuescroll-native.js +0 -0
- /package/dist/lib/node_modules/.pnpm/{vuescroll@4.17.5_vue@2.7.14 → vuescroll@4.17.5_vue@2.7.15}/node_modules/vuescroll/dist/vuescroll-native.js +0 -0
|
@@ -2,12 +2,14 @@ import PropsMinix from './PropsMinix';
|
|
|
2
2
|
declare const MXBackgroundGrid_base: import("vue-class-component/lib/declarations").VueClass<PropsMinix>;
|
|
3
3
|
declare class MXBackgroundGrid extends MXBackgroundGrid_base {
|
|
4
4
|
protected canvasIns: Readonly<CanvasRenderingContext2D | null>;
|
|
5
|
+
protected againInitGridTimer: any;
|
|
5
6
|
protected watchWidth(): void;
|
|
6
7
|
protected watchHeight(): void;
|
|
7
8
|
protected watchGridConfig(): void;
|
|
8
9
|
protected get cellMg(): number;
|
|
9
10
|
protected mounted(): void;
|
|
10
|
-
protected
|
|
11
|
+
protected destroyed(): void;
|
|
12
|
+
protected againInitGrid(): void;
|
|
11
13
|
protected initGrid(): void;
|
|
12
14
|
protected drawPoints(): void;
|
|
13
15
|
protected drawRowAndCol(): void;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import "vue";
|
|
2
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
3
|
import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
|
|
4
|
-
import { Watch as
|
|
5
|
-
import { debounce as C } from "lodash";
|
|
4
|
+
import { Watch as d } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
|
|
6
5
|
import I from "./PropsMinix.js";
|
|
7
|
-
var
|
|
8
|
-
for (var e = h > 1 ? void 0 : h ?
|
|
6
|
+
var C = Object.defineProperty, T = Object.getOwnPropertyDescriptor, g = (s, i, t, h) => {
|
|
7
|
+
for (var e = h > 1 ? void 0 : h ? T(i, t) : i, n = s.length - 1, a; n >= 0; n--)
|
|
9
8
|
(a = s[n]) && (e = (h ? a(i, t, e) : a(e)) || e);
|
|
10
|
-
return h && e &&
|
|
9
|
+
return h && e && C(i, t, e), e;
|
|
11
10
|
};
|
|
12
11
|
let l = class extends m(I) {
|
|
13
12
|
constructor() {
|
|
14
|
-
super(...arguments), this.canvasIns = Object.freeze(null), this.
|
|
15
|
-
this.initGrid();
|
|
16
|
-
}, 100);
|
|
13
|
+
super(...arguments), this.canvasIns = Object.freeze(null), this.againInitGridTimer = Object.freeze(null);
|
|
17
14
|
}
|
|
18
15
|
watchWidth() {
|
|
19
16
|
this.againInitGrid();
|
|
@@ -30,6 +27,14 @@ let l = class extends m(I) {
|
|
|
30
27
|
mounted() {
|
|
31
28
|
this.initGrid();
|
|
32
29
|
}
|
|
30
|
+
destroyed() {
|
|
31
|
+
this.againInitGridTimer && clearTimeout(this.againInitGridTimer);
|
|
32
|
+
}
|
|
33
|
+
againInitGrid() {
|
|
34
|
+
this.againInitGridTimer && clearTimeout(this.againInitGridTimer), this.againInitGridTimer = setTimeout(() => {
|
|
35
|
+
this.initGrid();
|
|
36
|
+
}, 100);
|
|
37
|
+
}
|
|
33
38
|
initGrid() {
|
|
34
39
|
if (this.canvasIns)
|
|
35
40
|
this.canvasIns.clearRect(0, 0, this.width, this.height);
|
|
@@ -40,7 +45,7 @@ let l = class extends m(I) {
|
|
|
40
45
|
this.model === 0 ? (this.drawPoints(), this.drawRowAndCol()) : this.model === 1 && this.drawMesh();
|
|
41
46
|
}
|
|
42
47
|
drawPoints() {
|
|
43
|
-
var a,
|
|
48
|
+
var a, o;
|
|
44
49
|
let i = this.gridConfig.lineWidth === 1 ? 0.5 : 0, t = this.cellMg;
|
|
45
50
|
const h = [], e = this.magnification > 1 ? this.gridConfig.lineWidth + 1 : this.gridConfig.lineWidth;
|
|
46
51
|
for (this.beforeCtxDraw(
|
|
@@ -52,14 +57,14 @@ let l = class extends m(I) {
|
|
|
52
57
|
let n = 0;
|
|
53
58
|
for (; i < this.height; ) {
|
|
54
59
|
if (n % this.cellPoints !== 0)
|
|
55
|
-
for (let
|
|
56
|
-
(
|
|
60
|
+
for (let r = 0; r < h.length; r++)
|
|
61
|
+
(r + 2) % this.cellPoints !== 0 && r % 2 === 0 && ((a = this.canvasIns) == null || a.moveTo(h[r], i), (o = this.canvasIns) == null || o.lineTo(h[r + 1], i));
|
|
57
62
|
i += this.cellMg, n++;
|
|
58
63
|
}
|
|
59
64
|
this.afterDrawOver(this.canvasIns);
|
|
60
65
|
}
|
|
61
66
|
drawRowAndCol() {
|
|
62
|
-
var e, n, a,
|
|
67
|
+
var e, n, a, o;
|
|
63
68
|
const s = this.gridConfig.lineWidth === 1 ? 0.5 : 0;
|
|
64
69
|
let i = s, t = s, h = 0;
|
|
65
70
|
for (this.beforeCtxDraw(
|
|
@@ -67,11 +72,11 @@ let l = class extends m(I) {
|
|
|
67
72
|
this.gridConfig.bigCellColor,
|
|
68
73
|
this.gridConfig.lineWidth
|
|
69
74
|
); i < this.width || t < this.height; )
|
|
70
|
-
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), (
|
|
75
|
+
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), (o = this.canvasIns) == null || o.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
|
|
71
76
|
this.afterDrawOver(this.canvasIns);
|
|
72
77
|
}
|
|
73
78
|
drawMesh() {
|
|
74
|
-
var e, n, a,
|
|
79
|
+
var e, n, a, o, r, c, f, v;
|
|
75
80
|
const s = this.gridConfig.lineWidth === 1 ? 0.5 : 0;
|
|
76
81
|
let i = s, t = s, h = 0;
|
|
77
82
|
for (this.beforeCtxDraw(
|
|
@@ -79,13 +84,13 @@ let l = class extends m(I) {
|
|
|
79
84
|
this.gridConfig.smallCellColor,
|
|
80
85
|
this.gridConfig.lineWidth
|
|
81
86
|
); i < this.width || t < this.height; )
|
|
82
|
-
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), (
|
|
87
|
+
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), (o = this.canvasIns) == null || o.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
|
|
83
88
|
for (this.afterDrawOver(this.canvasIns), i = t = s, h = 0, this.beforeCtxDraw(
|
|
84
89
|
this.canvasIns,
|
|
85
90
|
this.gridConfig.bigCellColor,
|
|
86
91
|
this.gridConfig.lineWidth
|
|
87
92
|
); i < this.width || t < this.height; )
|
|
88
|
-
h % this.cellPoints === 0 && ((
|
|
93
|
+
h % this.cellPoints === 0 && ((r = this.canvasIns) == null || r.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++;
|
|
89
94
|
this.afterDrawOver(this.canvasIns);
|
|
90
95
|
}
|
|
91
96
|
beforeCtxDraw(s, i, t) {
|
|
@@ -96,13 +101,13 @@ let l = class extends m(I) {
|
|
|
96
101
|
}
|
|
97
102
|
};
|
|
98
103
|
g([
|
|
99
|
-
|
|
104
|
+
d("width")
|
|
100
105
|
], l.prototype, "watchWidth", 1);
|
|
101
106
|
g([
|
|
102
|
-
|
|
107
|
+
d("height")
|
|
103
108
|
], l.prototype, "watchHeight", 1);
|
|
104
109
|
g([
|
|
105
|
-
|
|
110
|
+
d("gridConfig", { deep: !0 })
|
|
106
111
|
], l.prototype, "watchGridConfig", 1);
|
|
107
112
|
l = g([
|
|
108
113
|
w({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import MethodsMinix from './method';
|
|
2
2
|
declare const CommonWaveForm_base: import("vue-class-component/lib/declarations").VueClass<MethodsMinix>;
|
|
3
3
|
declare class CommonWaveForm extends CommonWaveForm_base {
|
|
4
|
+
protected repaintTimer: any;
|
|
4
5
|
protected watchVuescrollConfig(): void;
|
|
5
6
|
protected watchAnalyseValues(): void;
|
|
6
7
|
protected watchWaveConfigs(): void;
|
|
@@ -10,7 +11,9 @@ declare class CommonWaveForm extends CommonWaveForm_base {
|
|
|
10
11
|
protected watchWidth(): void;
|
|
11
12
|
protected watchHeight(): void;
|
|
12
13
|
protected watchLongLeadConfig(): void;
|
|
13
|
-
protected
|
|
14
|
+
protected watchPosStart(): void;
|
|
15
|
+
protected destroyed(): void;
|
|
16
|
+
protected repaint(): void;
|
|
14
17
|
created(): void;
|
|
15
18
|
mounted(): void;
|
|
16
19
|
}
|
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
import "./style/index.css";
|
|
2
2
|
import "vue";
|
|
3
|
-
import
|
|
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
4
|
import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
|
|
5
|
-
import { Watch as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import u from "../
|
|
9
|
-
import f from "../
|
|
10
|
-
import g from "../
|
|
11
|
-
import w from "
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return n && a && v(i, s, a), a;
|
|
5
|
+
import { Watch as a } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
|
|
6
|
+
import d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.15/node_modules/vuescroll/dist/vuescroll-native.js";
|
|
7
|
+
import m from "../MeasuringRuler/index2.js";
|
|
8
|
+
import u from "../MagnifierWave/index.js";
|
|
9
|
+
import f from "../ParallelRuler/index2.js";
|
|
10
|
+
import g from "../BackgroundGrid/index2.js";
|
|
11
|
+
import w from "./method.js";
|
|
12
|
+
var C = Object.defineProperty, v = Object.getOwnPropertyDescriptor, i = (t, r, n, s) => {
|
|
13
|
+
for (var o = s > 1 ? void 0 : s ? v(r, n) : r, h = t.length - 1, p; h >= 0; h--)
|
|
14
|
+
(p = t[h]) && (o = (s ? p(r, n, o) : p(o)) || o);
|
|
15
|
+
return s && o && C(r, n, o), o;
|
|
17
16
|
};
|
|
18
|
-
let
|
|
17
|
+
let e = class extends c(w) {
|
|
19
18
|
constructor() {
|
|
20
|
-
super(...arguments), this.
|
|
21
|
-
var e, i;
|
|
22
|
-
(e = this.sceneIns) == null || e.clear(), (i = this.sceneIns) == null || i.resize({
|
|
23
|
-
width: this.canvasContainer.width,
|
|
24
|
-
height: this.canvasContainer.height
|
|
25
|
-
}), this.initCreatedConfig(), this.combinationDrawing();
|
|
26
|
-
}, 200);
|
|
19
|
+
super(...arguments), this.repaintTimer = Object.freeze(null);
|
|
27
20
|
}
|
|
28
21
|
watchVuescrollConfig() {
|
|
29
22
|
this.repaint();
|
|
@@ -38,8 +31,8 @@ let t = class extends l(C) {
|
|
|
38
31
|
this.repaint();
|
|
39
32
|
}
|
|
40
33
|
watchLeadHeadConfig() {
|
|
41
|
-
var
|
|
42
|
-
(
|
|
34
|
+
var t, r;
|
|
35
|
+
(t = this.leadHeadGroup) == null || t.removeAll(), (r = this.sceneIns) == null || r.remove(this.leadHeadGroup), this.drawLeadHead();
|
|
43
36
|
}
|
|
44
37
|
watchLeadModel() {
|
|
45
38
|
this.repaint();
|
|
@@ -51,8 +44,23 @@ let t = class extends l(C) {
|
|
|
51
44
|
this.repaint();
|
|
52
45
|
}
|
|
53
46
|
watchLongLeadConfig() {
|
|
54
|
-
var
|
|
55
|
-
(
|
|
47
|
+
var t;
|
|
48
|
+
(t = this.sceneIns) == null || t.clear(), this.init();
|
|
49
|
+
}
|
|
50
|
+
watchPosStart() {
|
|
51
|
+
this.registPostStart();
|
|
52
|
+
}
|
|
53
|
+
destroyed() {
|
|
54
|
+
this.repaintTimer && clearTimeout(this.repaintTimer);
|
|
55
|
+
}
|
|
56
|
+
repaint() {
|
|
57
|
+
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
58
|
+
var t, r;
|
|
59
|
+
(t = this.sceneIns) == null || t.clear(), (r = this.sceneIns) == null || r.resize({
|
|
60
|
+
width: this.canvasContainer.width,
|
|
61
|
+
height: this.canvasContainer.height
|
|
62
|
+
}), this.initCreatedConfig(), this.combinationDrawing();
|
|
63
|
+
}, 200);
|
|
56
64
|
}
|
|
57
65
|
created() {
|
|
58
66
|
this.initCreatedConfig();
|
|
@@ -61,45 +69,48 @@ let t = class extends l(C) {
|
|
|
61
69
|
this.init();
|
|
62
70
|
}
|
|
63
71
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
],
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
],
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
],
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
],
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
],
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
],
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
],
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
],
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
],
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
i([
|
|
73
|
+
a("vuescrollConfig", { deep: !0 })
|
|
74
|
+
], e.prototype, "watchVuescrollConfig", 1);
|
|
75
|
+
i([
|
|
76
|
+
a("analyseValues", { deep: !0 })
|
|
77
|
+
], e.prototype, "watchAnalyseValues", 1);
|
|
78
|
+
i([
|
|
79
|
+
a("waveConfigs", { deep: !0 })
|
|
80
|
+
], e.prototype, "watchWaveConfigs", 1);
|
|
81
|
+
i([
|
|
82
|
+
a("waveLists", { deep: !0 })
|
|
83
|
+
], e.prototype, "watchWaveLists", 1);
|
|
84
|
+
i([
|
|
85
|
+
a("leadHeadConfig", { deep: !0 })
|
|
86
|
+
], e.prototype, "watchLeadHeadConfig", 1);
|
|
87
|
+
i([
|
|
88
|
+
a("leadModel", { deep: !0 })
|
|
89
|
+
], e.prototype, "watchLeadModel", 1);
|
|
90
|
+
i([
|
|
91
|
+
a("width")
|
|
92
|
+
], e.prototype, "watchWidth", 1);
|
|
93
|
+
i([
|
|
94
|
+
a("height")
|
|
95
|
+
], e.prototype, "watchHeight", 1);
|
|
96
|
+
i([
|
|
97
|
+
a("longLeadConfig", { deep: !0 })
|
|
98
|
+
], e.prototype, "watchLongLeadConfig", 1);
|
|
99
|
+
i([
|
|
100
|
+
a("posStart")
|
|
101
|
+
], e.prototype, "watchPosStart", 1);
|
|
102
|
+
e = i([
|
|
103
|
+
l({
|
|
93
104
|
name: "CommonWaveForm",
|
|
94
105
|
components: {
|
|
95
|
-
vueScroll:
|
|
96
|
-
MXBackgroundGrid:
|
|
97
|
-
MXMeasuringRuler:
|
|
98
|
-
MXParallelRuler:
|
|
99
|
-
MXMagnifierWave:
|
|
106
|
+
vueScroll: d,
|
|
107
|
+
MXBackgroundGrid: g,
|
|
108
|
+
MXMeasuringRuler: m,
|
|
109
|
+
MXParallelRuler: f,
|
|
110
|
+
MXMagnifierWave: u
|
|
100
111
|
}
|
|
101
112
|
})
|
|
102
|
-
],
|
|
113
|
+
], e);
|
|
103
114
|
export {
|
|
104
|
-
|
|
115
|
+
e as default
|
|
105
116
|
};
|
|
@@ -49,6 +49,8 @@ export default class Methods extends Vue {
|
|
|
49
49
|
protected dataTotalLength: number;
|
|
50
50
|
/** 前缀 id */
|
|
51
51
|
protected prefixId: string;
|
|
52
|
+
/** 起始位置 */
|
|
53
|
+
protected posStart: number;
|
|
52
54
|
protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
|
|
53
55
|
protected sceneIns: Readonly<ZRenderType | null>;
|
|
54
56
|
protected layerBgGroup: Readonly<Group | null>;
|
|
@@ -156,6 +158,7 @@ export default class Methods extends Vue {
|
|
|
156
158
|
/** 初始化配置 */
|
|
157
159
|
protected initCreatedConfig(): void;
|
|
158
160
|
protected init(): void;
|
|
161
|
+
protected registPostStart(): void;
|
|
159
162
|
protected combinationDrawing(): void;
|
|
160
163
|
/** 计算心拍 */
|
|
161
164
|
protected calcHeartBeatPositions(): void;
|