costy-plus 1.0.23-0 → 1.0.25-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.
|
@@ -9,17 +9,17 @@ var D = (e, t, a) => t in e ? T(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
for (var a of M(t))
|
|
10
10
|
G.call(t, a) && D(e, a, t[a]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, y = (e, t) => b(e, Q(t));
|
|
13
13
|
import K from "vue";
|
|
14
14
|
import 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";
|
|
15
15
|
import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js";
|
|
16
|
-
import { Prop as
|
|
16
|
+
import { Prop as h } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js";
|
|
17
17
|
import { Watch as w } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js";
|
|
18
|
-
import { AnalysisMode as F, AnalyseParameterTable as X, LeadNameTexts as S, getLeadpoint as z, getActualY as O, calcDistance as H, calcPRInterval as j, calcPD as E, calcQRSD as _, calcQTAndQTCAndQTD as k, caclTD as q, calcTA as $, toFixedFun as
|
|
19
|
-
import { util as R, Polyline as P, Text as
|
|
18
|
+
import { AnalysisMode as F, AnalyseParameterTable as X, LeadNameTexts as S, getLeadpoint as z, getActualY as O, calcDistance as H, calcPRInterval as j, calcPD as E, calcQRSD as _, calcQTAndQTCAndQTD as k, caclTD as q, calcTA as $, toFixedFun as m, calcPstate as Y, calcPA as J, calcQRS as U, calcSTJA as Z, clacST as ee, calcIaddIIaddIII as te, calcRv5 as ae, calcSv1 as se, calcPelectricAxis as ie, calcQRSelectricAxis as ne, calcTelectricAxis as re, calcMs as le, getStepForSpeed as he } from "@costy-plus/utils";
|
|
19
|
+
import { util as R, Polyline as P, Text as x, Group as B, Line as oe, Circle as de } from "zrender";
|
|
20
20
|
var ue = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, r = (e, t, a, s) => {
|
|
21
|
-
for (var i = s > 1 ? void 0 : s ? ce(t, a) : t,
|
|
22
|
-
(o = e[
|
|
21
|
+
for (var i = s > 1 ? void 0 : s ? ce(t, a) : t, l = e.length - 1, o; l >= 0; l--)
|
|
22
|
+
(o = e[l]) && (i = (s ? o(t, a, i) : o(i)) || i);
|
|
23
23
|
return s && i && ue(t, a, i), i;
|
|
24
24
|
};
|
|
25
25
|
let n = class extends K {
|
|
@@ -74,8 +74,8 @@ let n = class extends K {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
destroyed() {
|
|
77
|
-
var e, t, a, s, i,
|
|
78
|
-
(e = this.waveFromGroup) == null || e.removeAll(), (t = this.measureGroup) == null || t.removeAll(), (a = this.M1) == null || a.removeAll(), (s = this.M2) == null || s.removeAll(), (i = this.P1) == null || i.removeAll(), (
|
|
77
|
+
var e, t, a, s, i, l, o, d, u, f, p;
|
|
78
|
+
(e = this.waveFromGroup) == null || e.removeAll(), (t = this.measureGroup) == null || t.removeAll(), (a = this.M1) == null || a.removeAll(), (s = this.M2) == null || s.removeAll(), (i = this.P1) == null || i.removeAll(), (l = this.P2) == null || l.removeAll(), (o = this.R1) == null || o.removeAll(), (d = this.R2) == null || d.removeAll(), (u = this.T1) == null || u.removeAll(), (f = this.T2) == null || f.removeAll();
|
|
79
79
|
try {
|
|
80
80
|
(p = this.sceneIns) == null || p.dispose();
|
|
81
81
|
} catch (A) {
|
|
@@ -94,7 +94,7 @@ let n = class extends K {
|
|
|
94
94
|
}
|
|
95
95
|
processEnlargeAnalysisData() {
|
|
96
96
|
var e, t, a, s, i;
|
|
97
|
-
this.enlargeAnalysisData =
|
|
97
|
+
this.enlargeAnalysisData = y(c({}, ((e = this.currentLeadAnalyseValue) == null ? void 0 : e.AnabyBeat) || {}), {
|
|
98
98
|
AtrialRate: ((a = (t = this.complexAnalysisvalue) == null ? void 0 : t.AnabyBeat) == null ? void 0 : a.AtrialRate) || 0,
|
|
99
99
|
VentricularRate: ((i = (s = this.complexAnalysisvalue) == null ? void 0 : s.AnabyBeat) == null ? void 0 : i.VentricularRate) || 0,
|
|
100
100
|
QTc: ""
|
|
@@ -149,7 +149,7 @@ let n = class extends K {
|
|
|
149
149
|
}
|
|
150
150
|
createLeadName() {
|
|
151
151
|
var e;
|
|
152
|
-
this.leadNameIns = new
|
|
152
|
+
this.leadNameIns = new x({
|
|
153
153
|
style: {
|
|
154
154
|
x: this.leadHeadConfig.leadHedeWidth,
|
|
155
155
|
y: this.containerWH.height / 2 - this.leadConfig.fontSize,
|
|
@@ -162,7 +162,7 @@ let n = class extends K {
|
|
|
162
162
|
}
|
|
163
163
|
createSensAndSpeed() {
|
|
164
164
|
var e, t;
|
|
165
|
-
this.sensAndSpeedIns && ((e = this.sceneIns) == null || e.remove(this.sensAndSpeedIns)), this.sensAndSpeedIns = new
|
|
165
|
+
this.sensAndSpeedIns && ((e = this.sceneIns) == null || e.remove(this.sensAndSpeedIns)), this.sensAndSpeedIns = new x({
|
|
166
166
|
cursor: "",
|
|
167
167
|
style: {
|
|
168
168
|
x: this.leadHeadConfig.leadHedeWidth,
|
|
@@ -192,17 +192,17 @@ let n = class extends K {
|
|
|
192
192
|
}
|
|
193
193
|
drawAllLead() {
|
|
194
194
|
var t, a, s;
|
|
195
|
-
(t = this.waveFromIns) == null || t.hide(), this.waveFromGroup ? this.waveFromGroup.removeAll() : this.waveFromGroup = new
|
|
195
|
+
(t = this.waveFromIns) == null || t.hide(), this.waveFromGroup ? this.waveFromGroup.removeAll() : this.waveFromGroup = new B({
|
|
196
196
|
name: "waveFromGroup"
|
|
197
197
|
}), this.longdata = void 0;
|
|
198
198
|
const e = this.containerWH.height / 2;
|
|
199
199
|
for (let i = 0; i < this.leadNames.length - 1; i++) {
|
|
200
|
-
const { beatData:
|
|
201
|
-
this.startPos = o, this.drawWaveFromX === 0 && (this.waveFromLenPX =
|
|
200
|
+
const { beatData: l, startPos: o } = this.getWaveFrom(((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatID) || 0, this.leadNames[i].val);
|
|
201
|
+
this.startPos = o, this.drawWaveFromX === 0 && (this.waveFromLenPX = l.length * this.currentStep, this.drawWaveFromX = this.containerWH.width / 2 - this.waveFromLenPX / 2 + this.leadHeadConfig.leadHedeWidth), this.waveFromGroup.add(new P({
|
|
202
202
|
cursor: "",
|
|
203
203
|
name: `${i}`,
|
|
204
204
|
shape: {
|
|
205
|
-
points:
|
|
205
|
+
points: l.map((d, u) => [
|
|
206
206
|
u * this.currentStep + this.drawWaveFromX,
|
|
207
207
|
-d + e
|
|
208
208
|
])
|
|
@@ -216,12 +216,12 @@ let n = class extends K {
|
|
|
216
216
|
(s = this.sceneIns) == null || s.add(this.waveFromGroup);
|
|
217
217
|
}
|
|
218
218
|
drawSingleLead() {
|
|
219
|
-
var i,
|
|
219
|
+
var i, l, o;
|
|
220
220
|
this.waveFromGroup && ((i = this.sceneIns) == null || i.remove(this.waveFromGroup));
|
|
221
221
|
const { beatData: e, startPos: t, originData: a } = this.getWaveFrom();
|
|
222
222
|
this.startPos = t, this.drawWaveFromX === 0 && (this.waveFromLenPX = e.length * this.currentStep, this.drawWaveFromX = this.containerWH.width / 2 - this.waveFromLenPX / 2 + this.leadHeadConfig.leadHedeWidth), this.longdata = a;
|
|
223
223
|
const s = this.containerWH.height / 2;
|
|
224
|
-
(
|
|
224
|
+
(l = this.waveFromIns) == null || l.attr({
|
|
225
225
|
shape: {
|
|
226
226
|
points: e.map((d, u) => [
|
|
227
227
|
u * this.currentStep + this.drawWaveFromX,
|
|
@@ -243,7 +243,7 @@ let n = class extends K {
|
|
|
243
243
|
});
|
|
244
244
|
return {
|
|
245
245
|
originData: s,
|
|
246
|
-
beatData: s.map((
|
|
246
|
+
beatData: s.map((l) => O(this.sensitivity, l, this.currentSens)),
|
|
247
247
|
startPos: i
|
|
248
248
|
};
|
|
249
249
|
}
|
|
@@ -254,8 +254,8 @@ let n = class extends K {
|
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
256
|
drawMeasureLine() {
|
|
257
|
-
var a, s, i,
|
|
258
|
-
this.measureGroup ? ((a = this.sceneIns) == null || a.remove(this.measureGroup), this.measureGroup.removeAll()) : this.measureGroup = new
|
|
257
|
+
var a, s, i, l, o, d, u, f, p, A, L, v, g, I;
|
|
258
|
+
this.measureGroup ? ((a = this.sceneIns) == null || a.remove(this.measureGroup), this.measureGroup.removeAll()) : this.measureGroup = new B({
|
|
259
259
|
name: "measureGroup"
|
|
260
260
|
});
|
|
261
261
|
const e = H(this.currentSpeedValue, this.gridConfig.cellMg, this.magnification), t = {
|
|
@@ -268,7 +268,7 @@ let n = class extends K {
|
|
|
268
268
|
t
|
|
269
269
|
), this.P2 = this.createMeasureLineGroup(
|
|
270
270
|
"P2",
|
|
271
|
-
((((o = (
|
|
271
|
+
((((o = (l = this.currentLeadAnalyseValue) == null ? void 0 : l.KeyPosByBeat) == null ? void 0 : o.Pend) || 0) - this.startPos) * this.currentStep + this.drawWaveFromX,
|
|
272
272
|
t
|
|
273
273
|
), this.R1 = this.createMeasureLineGroup(
|
|
274
274
|
"R1",
|
|
@@ -289,7 +289,7 @@ let n = class extends K {
|
|
|
289
289
|
), this.measureGroup.add(this.M1), this.measureGroup.add(this.M2), this.measureGroup.add(this.P1), this.measureGroup.add(this.P2), this.measureGroup.add(this.R1), this.measureGroup.add(this.R2), this.measureGroup.add(this.T1), this.measureGroup.add(this.T2), (I = this.sceneIns) == null || I.add(this.measureGroup);
|
|
290
290
|
}
|
|
291
291
|
createMeasureLineGroup(e, t, a) {
|
|
292
|
-
const s = new
|
|
292
|
+
const s = new B({
|
|
293
293
|
name: e,
|
|
294
294
|
draggable: "horizontal",
|
|
295
295
|
ondrag: this.measureLineDrag
|
|
@@ -314,7 +314,7 @@ let n = class extends K {
|
|
|
314
314
|
style: {
|
|
315
315
|
fill: "#ccc"
|
|
316
316
|
}
|
|
317
|
-
})), s.add(new
|
|
317
|
+
})), s.add(new x({
|
|
318
318
|
cursor: "",
|
|
319
319
|
name: "Text",
|
|
320
320
|
style: {
|
|
@@ -328,7 +328,7 @@ let n = class extends K {
|
|
|
328
328
|
})), e !== "M1" && e !== "M2" && (this.measureLineList = [...this.measureLineList, {
|
|
329
329
|
ins: s,
|
|
330
330
|
x: t
|
|
331
|
-
}].sort((
|
|
331
|
+
}].sort((l, o) => l.x - o.x)), s;
|
|
332
332
|
}
|
|
333
333
|
measureLineDrag(e) {
|
|
334
334
|
e.target.name === "M1" || e.target.name === "M2" ? this.calculatedValue() : this.calcMeasureLineMove(e);
|
|
@@ -389,14 +389,14 @@ let n = class extends K {
|
|
|
389
389
|
}
|
|
390
390
|
if (this.electricAxisAnalyse(), this.processEnlargeAnalysis(), this.isShowSyncAnalyseValue) {
|
|
391
391
|
const i = c(c({}, ((t = this.currentLeadAnalyseValue) == null ? void 0 : t.AnabyBeat) || {}), this.enlargeAnalysisData);
|
|
392
|
-
this.modifyAnalysed.set(((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatID) || 0,
|
|
392
|
+
this.modifyAnalysed.set(((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatID) || 0, y(c({}, this.currentLeadAnalyseValue), {
|
|
393
393
|
AnabyBeat: i,
|
|
394
394
|
BeatID: ((s = this.currentLeadAnalyseValue) == null ? void 0 : s.BeatID) || 0
|
|
395
395
|
}));
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
processEnlargeAnalysis() {
|
|
399
|
-
var t, a, s, i,
|
|
399
|
+
var t, a, s, i, l, o;
|
|
400
400
|
const e = {
|
|
401
401
|
start_pos: this.startPos,
|
|
402
402
|
Sensitivity: this.sensitivity,
|
|
@@ -432,41 +432,41 @@ let n = class extends K {
|
|
|
432
432
|
this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,
|
|
433
433
|
this.sampleRate
|
|
434
434
|
));
|
|
435
|
-
const { TA: d } = $(
|
|
435
|
+
const { TA: d } = $(y(c({}, e), {
|
|
436
436
|
Tstart: this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,
|
|
437
437
|
Tend: this.currentLeadAnalyseValue.KeyPosByBeat.Tend,
|
|
438
438
|
QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
|
|
439
439
|
TPpeak: this.currentLeadAnalyseValue.KeyPosByBeat.TPpeak
|
|
440
440
|
}));
|
|
441
|
-
this.enlargeAnalysisData.TtypeA =
|
|
441
|
+
this.enlargeAnalysisData.TtypeA = m(d || 0, 2);
|
|
442
442
|
}
|
|
443
|
-
if (this.enlargeAnalysisData.Ptype = Y(
|
|
443
|
+
if (this.enlargeAnalysisData.Ptype = Y(y(c({}, e), {
|
|
444
444
|
Pstart: this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
|
|
445
445
|
Pend: this.currentLeadAnalyseValue.KeyPosByBeat.Pend,
|
|
446
446
|
data: this.longdata
|
|
447
447
|
})) || "", this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "P1" || this.measureLineMoveInfo.name === "P2") {
|
|
448
|
-
const { PA: d } = J(
|
|
448
|
+
const { PA: d } = J(y(c({}, e), {
|
|
449
449
|
Pstart: this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
|
|
450
450
|
Pend: this.currentLeadAnalyseValue.KeyPosByBeat.Pend,
|
|
451
451
|
PPpeak: this.currentLeadAnalyseValue.KeyPosByBeat.PPpeak
|
|
452
452
|
}));
|
|
453
|
-
this.enlargeAnalysisData.PtypeA =
|
|
453
|
+
this.enlargeAnalysisData.PtypeA = m(d || 0, 2);
|
|
454
454
|
}
|
|
455
455
|
if (this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "R1" || this.measureLineMoveInfo.name === "R2") {
|
|
456
|
-
const { qrs_morph_type: d, QA: u, QD: f, RA: p, RD: A, SD: L, RPD: v, SA: g, RPA: I } = U(
|
|
456
|
+
const { qrs_morph_type: d, QA: u, QD: f, RA: p, RD: A, SD: L, RPD: v, SA: g, RPA: I } = U(y(c({}, e), {
|
|
457
457
|
QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
|
|
458
458
|
QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend
|
|
459
459
|
}));
|
|
460
|
-
this.enlargeAnalysisData.QRStype = d || "", this.enlargeAnalysisData.QtypeA =
|
|
461
|
-
const
|
|
460
|
+
this.enlargeAnalysisData.QRStype = d || "", this.enlargeAnalysisData.QtypeA = m(u || 0, 2), this.enlargeAnalysisData.QD = Math.round(f || 0), this.enlargeAnalysisData.RtypeA = m(p || 0, 2), this.enlargeAnalysisData.StypeA = m(g || 0, 2), this.enlargeAnalysisData.RPA = m(I || 0, 2), this.enlargeAnalysisData.RD = m(A || 0, 2), this.enlargeAnalysisData.SD = m(L || 0, 2), this.enlargeAnalysisData.RPD = m(v || 0, 2);
|
|
461
|
+
const V = Z(
|
|
462
462
|
e.start_pos,
|
|
463
463
|
this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
|
|
464
464
|
this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
|
|
465
465
|
e.Sensitivity,
|
|
466
466
|
e.longdata
|
|
467
467
|
);
|
|
468
|
-
this.enlargeAnalysisData.STJtypeA =
|
|
469
|
-
const C = te(
|
|
468
|
+
this.enlargeAnalysisData.STJtypeA = m(V || 0, 2), this.enlargeAnalysisData.STstate = ee(V || 0, e.longdata) || "";
|
|
469
|
+
const C = te(y(c({}, e), {
|
|
470
470
|
ComplexData: this.complexData,
|
|
471
471
|
Data: this.normalData,
|
|
472
472
|
QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
|
|
@@ -475,15 +475,15 @@ let n = class extends K {
|
|
|
475
475
|
AnalyseValue: this.analyseValue,
|
|
476
476
|
leadNameList: this.leadNameList
|
|
477
477
|
}));
|
|
478
|
-
this.enlargeAnalysisData.IandIIandIII =
|
|
478
|
+
this.enlargeAnalysisData.IandIIandIII = m(C, 2), this.enlargeAnalysisData.RV5Amp = m(ae(y(c({}, e), {
|
|
479
479
|
ComplexData: this.complexData,
|
|
480
480
|
Data: this.normalData,
|
|
481
481
|
QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
|
|
482
482
|
QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
|
|
483
|
-
BeatID: ((
|
|
483
|
+
BeatID: ((l = this.currentLeadAnalyseValue) == null ? void 0 : l.BeatID) || 0,
|
|
484
484
|
AnalyseValue: this.analyseValue,
|
|
485
485
|
leadNameList: this.leadNameList
|
|
486
|
-
})) || 0, 2) + "", this.enlargeAnalysisData.SV1Amp =
|
|
486
|
+
})) || 0, 2) + "", this.enlargeAnalysisData.SV1Amp = m(se(y(c({}, e), {
|
|
487
487
|
ComplexData: this.complexData,
|
|
488
488
|
Data: this.normalData,
|
|
489
489
|
QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
|
|
@@ -507,7 +507,7 @@ let n = class extends K {
|
|
|
507
507
|
start_pos: this.startPos
|
|
508
508
|
};
|
|
509
509
|
if (this.measureLineMoveInfo.name === "P1" || this.measureLineMoveInfo.name === "P2") {
|
|
510
|
-
this.enlargeAnalysisData.PAxis = ie(
|
|
510
|
+
this.enlargeAnalysisData.PAxis = ie(y(c({}, e), {
|
|
511
511
|
Pstart: this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
|
|
512
512
|
Pend: this.currentLeadAnalyseValue.KeyPosByBeat.Pend
|
|
513
513
|
}));
|
|
@@ -520,14 +520,14 @@ let n = class extends K {
|
|
|
520
520
|
s > 180 && (s = 360 - s), this.currentLeadAnalyseValue.AnabyBeat.QRS_T = s;
|
|
521
521
|
};
|
|
522
522
|
if (this.measureLineMoveInfo.name === "R1" || this.measureLineMoveInfo.name === "R2") {
|
|
523
|
-
this.enlargeAnalysisData.QRSAxis = ne(
|
|
523
|
+
this.enlargeAnalysisData.QRSAxis = ne(y(c({}, e), {
|
|
524
524
|
QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
|
|
525
525
|
QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart
|
|
526
526
|
})), t();
|
|
527
527
|
return;
|
|
528
528
|
}
|
|
529
529
|
if (this.measureLineMoveInfo.name === "T1" || this.measureLineMoveInfo.name === "T2") {
|
|
530
|
-
this.enlargeAnalysisData.TAxis = re(
|
|
530
|
+
this.enlargeAnalysisData.TAxis = re(y(c({}, e), {
|
|
531
531
|
QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
|
|
532
532
|
Tend: this.currentLeadAnalyseValue.KeyPosByBeat.Tend
|
|
533
533
|
})), t();
|
|
@@ -539,8 +539,8 @@ let n = class extends K {
|
|
|
539
539
|
const e = (f = this.M1) == null ? void 0 : f.childOfName("Line_M1"), t = (p = this.M2) == null ? void 0 : p.childOfName("Line_M2");
|
|
540
540
|
if (!e || !t)
|
|
541
541
|
return;
|
|
542
|
-
const a = e.shape.x1 + (e.transform && e.transform[4] || 0), s = t.shape.x1 + (t.transform && t.transform[4] || 0), i = Math.abs(a - s),
|
|
543
|
-
this.difference.timeDifference =
|
|
542
|
+
const a = e.shape.x1 + (e.transform && e.transform[4] || 0), s = t.shape.x1 + (t.transform && t.transform[4] || 0), i = Math.abs(a - s), l = le(i, this.currentSpeedValue, this.gridConfig.cellMg, this.magnification);
|
|
543
|
+
this.difference.timeDifference = l;
|
|
544
544
|
const o = parseInt(
|
|
545
545
|
`${(a - this.drawWaveFromX) / this.currentStep}`
|
|
546
546
|
), d = parseInt(
|
|
@@ -573,16 +573,12 @@ let n = class extends K {
|
|
|
573
573
|
this.currentSpeedIdx > 0 && this.currentSpeedIdx <= this.speeds.length - 1 && (this.currentSpeedIdx -= 1, this.currentSpeedValue = this.speeds[this.currentSpeedIdx].value, t(), this.toggleRender());
|
|
574
574
|
}
|
|
575
575
|
toggleBeaadId(e) {
|
|
576
|
-
var t, a;
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}), this.toggleRender());
|
|
581
|
-
return;
|
|
582
|
-
}
|
|
583
|
-
this.currentLeadAnalyseValueIdx > 1 && this.currentLeadAnalyseValueIdx <= this.analyseValue.length - 1 && (this.currentLeadAnalyseValueIdx -= 1, this.currentLeadAnalyseValue = m(c({}, this.analyseValue[this.currentLeadAnalyseValueIdx]), {
|
|
576
|
+
var t, a, s, i, l, o;
|
|
577
|
+
e ? this.currentLeadAnalyseValueIdx < this.analyseValue.length - 1 && (this.currentLeadAnalyseValueIdx += 1, this.currentLeadAnalyseValue = y(c({}, this.analyseValue[this.currentLeadAnalyseValueIdx]), {
|
|
578
|
+
BeatCount: ((t = this.currentLeadAnalyseValue) == null ? void 0 : t.BeatCount) || 0
|
|
579
|
+
})) : this.currentLeadAnalyseValueIdx > 1 && this.currentLeadAnalyseValueIdx <= this.analyseValue.length - 1 && (this.currentLeadAnalyseValueIdx -= 1, this.currentLeadAnalyseValue = y(c({}, this.analyseValue[this.currentLeadAnalyseValueIdx]), {
|
|
584
580
|
BeatCount: ((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatCount) || 0
|
|
585
|
-
}), this.toggleRender()
|
|
581
|
+
})), this.enlargeAnalysisData.PAxis = ((i = (s = this.currentLeadAnalyseValue) == null ? void 0 : s.AnabyBeat) == null ? void 0 : i.PAxis) || 0, this.enlargeAnalysisData.TAxis = ((o = (l = this.currentLeadAnalyseValue) == null ? void 0 : l.AnabyBeat) == null ? void 0 : o.TAxis) || 0, this.toggleRender();
|
|
586
582
|
}
|
|
587
583
|
toggleRender() {
|
|
588
584
|
this.createLeadHead(), this.createSensAndSpeed(), this.drawWaveFrom(), this.drawMeasureLine(), this.calculatedValue(), this.electricAxisAnalyse(), this.processEnlargeAnalysis();
|
|
@@ -593,81 +589,81 @@ let n = class extends K {
|
|
|
593
589
|
}
|
|
594
590
|
};
|
|
595
591
|
r([
|
|
596
|
-
|
|
592
|
+
h({ default: () => "" })
|
|
597
593
|
], n.prototype, "className", 2);
|
|
598
594
|
r([
|
|
599
|
-
|
|
595
|
+
h({
|
|
600
596
|
required: !0,
|
|
601
597
|
type: Number,
|
|
602
598
|
validator: (e) => typeof e == "number"
|
|
603
599
|
})
|
|
604
600
|
], n.prototype, "width", 2);
|
|
605
601
|
r([
|
|
606
|
-
|
|
602
|
+
h({
|
|
607
603
|
required: !0,
|
|
608
604
|
type: Number,
|
|
609
605
|
validator: (e) => typeof e == "number"
|
|
610
606
|
})
|
|
611
607
|
], n.prototype, "height", 2);
|
|
612
608
|
r([
|
|
613
|
-
|
|
609
|
+
h({
|
|
614
610
|
required: !0
|
|
615
611
|
})
|
|
616
612
|
], n.prototype, "gridConfig", 2);
|
|
617
613
|
r([
|
|
618
|
-
|
|
614
|
+
h({
|
|
619
615
|
required: !0
|
|
620
616
|
})
|
|
621
617
|
], n.prototype, "speedValue", 2);
|
|
622
618
|
r([
|
|
623
|
-
|
|
619
|
+
h({
|
|
624
620
|
default: 1
|
|
625
621
|
})
|
|
626
622
|
], n.prototype, "sens", 2);
|
|
627
623
|
r([
|
|
628
|
-
|
|
624
|
+
h({
|
|
629
625
|
default: 1
|
|
630
626
|
})
|
|
631
627
|
], n.prototype, "step", 2);
|
|
632
628
|
r([
|
|
633
|
-
|
|
629
|
+
h({
|
|
634
630
|
required: !0
|
|
635
631
|
})
|
|
636
632
|
], n.prototype, "sampleRate", 2);
|
|
637
633
|
r([
|
|
638
|
-
|
|
634
|
+
h({
|
|
639
635
|
required: !0
|
|
640
636
|
})
|
|
641
637
|
], n.prototype, "sensitivity", 2);
|
|
642
638
|
r([
|
|
643
|
-
|
|
639
|
+
h({
|
|
644
640
|
required: !0,
|
|
645
641
|
default: () => []
|
|
646
642
|
})
|
|
647
643
|
], n.prototype, "complexData", 2);
|
|
648
644
|
r([
|
|
649
|
-
|
|
645
|
+
h({
|
|
650
646
|
required: !0,
|
|
651
647
|
default: () => []
|
|
652
648
|
})
|
|
653
649
|
], n.prototype, "normalData", 2);
|
|
654
650
|
r([
|
|
655
|
-
|
|
651
|
+
h({
|
|
656
652
|
default: !1
|
|
657
653
|
})
|
|
658
654
|
], n.prototype, "isShowEnlargeWave", 2);
|
|
659
655
|
r([
|
|
660
|
-
|
|
656
|
+
h({
|
|
661
657
|
default: !0
|
|
662
658
|
})
|
|
663
659
|
], n.prototype, "isShowSyncAnalyseValue", 2);
|
|
664
660
|
r([
|
|
665
|
-
|
|
661
|
+
h({
|
|
666
662
|
default: !1
|
|
667
663
|
})
|
|
668
664
|
], n.prototype, "isSyncAnalyseValueCheck", 2);
|
|
669
665
|
r([
|
|
670
|
-
|
|
666
|
+
h({
|
|
671
667
|
default: () => ({
|
|
672
668
|
leadHedeWidth: 20,
|
|
673
669
|
leadHedeColor: "#000",
|
|
@@ -676,7 +672,7 @@ r([
|
|
|
676
672
|
})
|
|
677
673
|
], n.prototype, "leadHeadConfig", 2);
|
|
678
674
|
r([
|
|
679
|
-
|
|
675
|
+
h({
|
|
680
676
|
default: () => ({
|
|
681
677
|
lineColor: "#000",
|
|
682
678
|
lineWidth: 1,
|
|
@@ -686,57 +682,57 @@ r([
|
|
|
686
682
|
})
|
|
687
683
|
], n.prototype, "leadConfig", 2);
|
|
688
684
|
r([
|
|
689
|
-
|
|
685
|
+
h({
|
|
690
686
|
default: 5
|
|
691
687
|
})
|
|
692
688
|
], n.prototype, "magnification", 2);
|
|
693
689
|
r([
|
|
694
|
-
|
|
690
|
+
h({
|
|
695
691
|
default: () => []
|
|
696
692
|
})
|
|
697
693
|
], n.prototype, "leadNameList", 2);
|
|
698
694
|
r([
|
|
699
|
-
|
|
695
|
+
h({
|
|
700
696
|
required: !0
|
|
701
697
|
})
|
|
702
698
|
], n.prototype, "activeLeadIdx", 2);
|
|
703
699
|
r([
|
|
704
|
-
|
|
700
|
+
h({
|
|
705
701
|
required: !0
|
|
706
702
|
})
|
|
707
703
|
], n.prototype, "activeLeadAnalyseValue", 2);
|
|
708
704
|
r([
|
|
709
|
-
|
|
705
|
+
h({
|
|
710
706
|
required: !0
|
|
711
707
|
})
|
|
712
708
|
], n.prototype, "analyseValue", 2);
|
|
713
709
|
r([
|
|
714
|
-
|
|
710
|
+
h({
|
|
715
711
|
default: "ECG"
|
|
716
712
|
})
|
|
717
713
|
], n.prototype, "typeClass", 2);
|
|
718
714
|
r([
|
|
719
|
-
|
|
715
|
+
h({
|
|
720
716
|
default: () => ["black", "red", "orange", "yellow", "green", "#4B0082", "blue", "purple", "#FFB6C1", "#EE82EE", "#6A5ACD", "#00FFFF"]
|
|
721
717
|
})
|
|
722
718
|
], n.prototype, "leadColors", 2);
|
|
723
719
|
r([
|
|
724
|
-
|
|
720
|
+
h({
|
|
725
721
|
default: F.CompoundWave
|
|
726
722
|
})
|
|
727
723
|
], n.prototype, "enlargeWaveMode", 2);
|
|
728
724
|
r([
|
|
729
|
-
|
|
725
|
+
h({
|
|
730
726
|
required: !0
|
|
731
727
|
})
|
|
732
728
|
], n.prototype, "conventionalECGConfig", 2);
|
|
733
729
|
r([
|
|
734
|
-
|
|
730
|
+
h({
|
|
735
731
|
default: () => []
|
|
736
732
|
})
|
|
737
733
|
], n.prototype, "gains", 2);
|
|
738
734
|
r([
|
|
739
|
-
|
|
735
|
+
h({
|
|
740
736
|
default: () => []
|
|
741
737
|
})
|
|
742
738
|
], n.prototype, "speeds", 2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,D=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var x=(e,t,a)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,c=(e,t)=>{for(var a in t||(t={}))R.call(t,a)&&x(e,a,t[a]);if(S)for(var a of S(t))w.call(t,a)&&x(e,a,t[a]);return e},m=(e,t)=>D(e,F(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),C=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const l=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),V=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),n=require("@costy-plus/utils"),y=require("zrender"),b=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Q=b(T);var W=Object.defineProperty,G=Object.getOwnPropertyDescriptor,r=(e,t,a,s)=>{for(var i=s>1?void 0:s?G(t,a):t,o=e.length-1,h;o>=0;o--)(h=e[o])&&(i=(s?h(t,a,i):h(i))||i);return s&&i&&W(t,a,i),i};exports.default=class extends Q.default{constructor(){super(...arguments),this.AnalysisMode=n.AnalysisMode,this.AnalyseParameterTable=n.AnalyseParameterTable,this.sceneIns=Object.freeze(null),this.AssistCtx=Object.freeze(null),this.leadNameIns=Object.freeze(null),this.sensAndSpeedIns=Object.freeze(null),this.waveFromIns=Object.freeze(null),this.waveFromGroup=Object.freeze(null),this.measureGroup=Object.freeze(null),this.leadHeadIns=Object.freeze(null),this.M1=Object.freeze(null),this.M2=Object.freeze(null),this.P1=Object.freeze(null),this.P2=Object.freeze(null),this.R1=Object.freeze(null),this.R2=Object.freeze(null),this.T1=Object.freeze(null),this.T2=Object.freeze(null),this.bottomSafeAreaH=Object.freeze(63),this.drawWaveFromX=Object.freeze(0),this.dbClickTime=Object.freeze(0),this.startPos=Object.freeze(0),this.currentGainIdx=Object.freeze(0),this.currentSpeedIdx=Object.freeze(0),this.currentLeadAnalyseValueIdx=Object.freeze(0),this.longdata=Object.freeze(void 0),this.modifyAnalysed=Object.freeze(null),this.measureLineMoveInfo=Object.freeze({x:0,findIdx:0,name:"",offLeftX:0}),this.measureLineList=Object.freeze([]),this.waveFromLenPX=Object.freeze(0),this.leadNames=[],this.leadNameActive={name:"",val:-2},this.isSyncAnalyseValue=!1,this.currentSens=0,this.currentSpeedValue=0,this.currentStep=0,this.currentLeadAnalyseValue=null,this.complexAnalysisvalue=Object.freeze(null),this.enlargeAnalysisData=null,this.difference={timeDifference:0,amplitudeDifference:""}}watchActiveLeadIdx(e){var t;this.leadNameActive=this.leadNames.find(a=>a.val===e)||{name:"",val:-2},(t=this.leadNameIns)==null||t.attr({style:{text:this.leadNameActive.name}})}watchLeadNameList(e){this.leadNames=e.map((t,a)=>{var s;return this.activeLeadIdx===a&&((s=this.leadNameIns)==null||s.attr({style:{text:n.LeadNameTexts[t]}}),this.leadNameActive={name:n.LeadNameTexts[t],val:a}),{name:n.LeadNameTexts[t],val:a}}).concat({name:"ALL",val:-1})}get containerWH(){return{width:this.width-230,height:this.height-40-50}}destroyed(){var e,t,a,s,i,o,h,d,u,f,p;(e=this.waveFromGroup)==null||e.removeAll(),(t=this.measureGroup)==null||t.removeAll(),(a=this.M1)==null||a.removeAll(),(s=this.M2)==null||s.removeAll(),(i=this.P1)==null||i.removeAll(),(o=this.P2)==null||o.removeAll(),(h=this.R1)==null||h.removeAll(),(d=this.R2)==null||d.removeAll(),(u=this.T1)==null||u.removeAll(),(f=this.T2)==null||f.removeAll();try{(p=this.sceneIns)==null||p.dispose()}catch(A){}}created(){this.modifyAnalysed=new Map,this.measureLineList=[],this.measureLineMoveInfo={x:0,findIdx:0,name:"",offLeftX:0},this.currentGainIdx=this.gains.findIndex(e=>e.value===this.sens/this.gridConfig.cellMg),this.currentSpeedIdx=this.speeds.findIndex(e=>e.value===this.speedValue),this.currentLeadAnalyseValueIdx=this.analyseValue.findIndex(e=>{var t;return e.BeatID===((t=this.activeLeadAnalyseValue)==null?void 0:t.BeatID)}),this.currentSens=this.sens*this.magnification,this.currentSpeedValue=this.speedValue,this.currentStep=this.step*this.magnification,this.currentLeadAnalyseValue=y.util.clone(this.activeLeadAnalyseValue),this.complexAnalysisvalue=y.util.clone(this.analyseValue[0])||null,this.isSyncAnalyseValueCheck&&(this.isSyncAnalyseValue=!0),this.processEnlargeAnalysisData()}processEnlargeAnalysisData(){var e,t,a,s,i;this.enlargeAnalysisData=m(c({},((e=this.currentLeadAnalyseValue)==null?void 0:e.AnabyBeat)||{}),{AtrialRate:((a=(t=this.complexAnalysisvalue)==null?void 0:t.AnabyBeat)==null?void 0:a.AtrialRate)||0,VentricularRate:((i=(s=this.complexAnalysisvalue)==null?void 0:s.AnabyBeat)==null?void 0:i.VentricularRate)||0,QTc:""})}selectLeadName(e){var t;this.leadNameActive=e,(t=this.leadNameIns)==null||t.attr({style:{text:e.name}}),this.drawWaveFrom()}createLeadHead(){var s,i;const t=this.containerWH.height/2,a=this.leadHeadConfig.leadHedeWidth/4;this.leadHeadIns&&((s=this.sceneIns)==null||s.remove(this.leadHeadIns)),this.leadHeadIns=new y.Polyline({cursor:"",shape:{points:[[0+0,0+t],[a+0,0+t],[a+0,-this.currentSens+t],[3*a+0,-this.currentSens+t],[3*a+0,0+t],[4*a+0,0+t]]},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}}),(i=this.sceneIns)==null||i.add(this.leadHeadIns)}createLeadName(){var e;this.leadNameIns=new y.Text({style:{x:this.leadHeadConfig.leadHedeWidth,y:this.containerWH.height/2-this.leadConfig.fontSize,text:this.leadNameActive.name,fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily}}),(e=this.sceneIns)==null||e.add(this.leadNameIns)}createSensAndSpeed(){var e,t;this.sensAndSpeedIns&&((e=this.sceneIns)==null||e.remove(this.sensAndSpeedIns)),this.sensAndSpeedIns=new y.Text({cursor:"",style:{x:this.leadHeadConfig.leadHedeWidth,y:this.containerWH.height-50,text:`${this.currentSens/this.gridConfig.cellMg/this.magnification}mm/mV ${this.currentSpeedValue}mm/s`,fontSize:12,fill:"#FF0080",fontFamily:this.leadConfig.fontFamily}}),(t=this.sceneIns)==null||t.add(this.sensAndSpeedIns)}createWaveFrom(){var e;this.waveFromIns=new y.Polyline({cursor:"",shape:{points:[]},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}}),(e=this.sceneIns)==null||e.add(this.waveFromIns)}drawWaveFrom(){this.leadNameActive.val===-1?this.drawAllLead():this.drawSingleLead(),this.calculatedValue(),this.electricAxisAnalyse(),this.processEnlargeAnalysis()}drawAllLead(){var t,a,s;(t=this.waveFromIns)==null||t.hide(),this.waveFromGroup?this.waveFromGroup.removeAll():this.waveFromGroup=new y.Group({name:"waveFromGroup"}),this.longdata=void 0;const e=this.containerWH.height/2;for(let i=0;i<this.leadNames.length-1;i++){const{beatData:o,startPos:h}=this.getWaveFrom(((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,this.leadNames[i].val);this.startPos=h,this.drawWaveFromX===0&&(this.waveFromLenPX=o.length*this.currentStep,this.drawWaveFromX=this.containerWH.width/2-this.waveFromLenPX/2+this.leadHeadConfig.leadHedeWidth),this.waveFromGroup.add(new y.Polyline({cursor:"",name:`${i}`,shape:{points:o.map((d,u)=>[u*this.currentStep+this.drawWaveFromX,-d+e])},style:{stroke:this.leadColors[i]||this.leadColors[i%this.leadColors.length],lineWidth:this.leadConfig.lineWidth}}))}(s=this.sceneIns)==null||s.add(this.waveFromGroup)}drawSingleLead(){var i,o,h;this.waveFromGroup&&((i=this.sceneIns)==null||i.remove(this.waveFromGroup));const{beatData:e,startPos:t,originData:a}=this.getWaveFrom();this.startPos=t,this.drawWaveFromX===0&&(this.waveFromLenPX=e.length*this.currentStep,this.drawWaveFromX=this.containerWH.width/2-this.waveFromLenPX/2+this.leadHeadConfig.leadHedeWidth),this.longdata=a;const s=this.containerWH.height/2;(o=this.waveFromIns)==null||o.attr({shape:{points:e.map((d,u)=>[u*this.currentStep+this.drawWaveFromX,-d+s])}}),(h=this.waveFromIns)==null||h.show()}getWaveFrom(e,t){var a;if(e=e!==void 0?e:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,console.log("this.normalData",t,this.leadNameActive.val),t=t!==void 0?t:this.leadNameActive.val,this.typeClass==="ECG"){const{beatData:s,startPos:i}=n.getLeadpoint({ComplexData:this.complexData,Data:this.normalData,AnalyseValue:this.analyseValue,BeatID:e,leadIdx:t,SampleRate:this.sampleRate});return{originData:s,beatData:s.map(o=>n.getActualY(this.sensitivity,o,this.currentSens)),startPos:i}}return{originData:[],beatData:[],startPos:-1}}drawMeasureLine(){var a,s,i,o,h,d,u,f,p,A,L,g,v,P;this.measureGroup?((a=this.sceneIns)==null||a.remove(this.measureGroup),this.measureGroup.removeAll()):this.measureGroup=new y.Group({name:"measureGroup"});const e=n.calcDistance(this.currentSpeedValue,this.gridConfig.cellMg,this.magnification),t={stroke:"#FF09FF",lineWidth:1.5};this.M1=this.createMeasureLineGroup("M1",this.drawWaveFromX+10,t),this.M2=this.createMeasureLineGroup("M2",this.drawWaveFromX+10+e,t),t.stroke="blue",this.P1=this.createMeasureLineGroup("P1",((((i=(s=this.currentLeadAnalyseValue)==null?void 0:s.KeyPosByBeat)==null?void 0:i.Pstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.P2=this.createMeasureLineGroup("P2",((((h=(o=this.currentLeadAnalyseValue)==null?void 0:o.KeyPosByBeat)==null?void 0:h.Pend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.R1=this.createMeasureLineGroup("R1",((((u=(d=this.currentLeadAnalyseValue)==null?void 0:d.KeyPosByBeat)==null?void 0:u.QRSstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.R2=this.createMeasureLineGroup("R2",((((p=(f=this.currentLeadAnalyseValue)==null?void 0:f.KeyPosByBeat)==null?void 0:p.QRSend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.T1=this.createMeasureLineGroup("T1",((((L=(A=this.currentLeadAnalyseValue)==null?void 0:A.KeyPosByBeat)==null?void 0:L.Tstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.T2=this.createMeasureLineGroup("T2",((((v=(g=this.currentLeadAnalyseValue)==null?void 0:g.KeyPosByBeat)==null?void 0:v.Tend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.measureGroup.add(this.M1),this.measureGroup.add(this.M2),this.measureGroup.add(this.P1),this.measureGroup.add(this.P2),this.measureGroup.add(this.R1),this.measureGroup.add(this.R2),this.measureGroup.add(this.T1),this.measureGroup.add(this.T2),(P=this.sceneIns)==null||P.add(this.measureGroup)}createMeasureLineGroup(e,t,a){const s=new y.Group({name:e,draggable:"horizontal",ondrag:this.measureLineDrag}),i=this.containerWH.height-this.bottomSafeAreaH;return s.add(new y.Line({cursor:"w-resize",name:`Line_${e}`,shape:{x1:t,y1:0,x2:t,y2:i},style:a})),s.add(new y.Circle({name:"Circle",x:t,y:i,shape:{r:6},style:{fill:"#ccc"}})),s.add(new y.Text({cursor:"",name:"Text",style:{x:t-7,y:i+12+10,text:e,fontSize:12,fill:"#000",fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1"}})),e!=="M1"&&e!=="M2"&&(this.measureLineList=[...this.measureLineList,{ins:s,x:t}].sort((o,h)=>o.x-h.x)),s}measureLineDrag(e){e.target.name==="M1"||e.target.name==="M2"?this.calculatedValue():this.calcMeasureLineMove(e)}calcMeasureLineMove(e){if(e.target.name!==this.measureLineMoveInfo.name){const a=this.measureLineList.findIndex(s=>s.ins.name===e.target.name);this.measureLineMoveInfo.findIdx=a,this.measureLineMoveInfo.name=e.target.name}if(this.measureLineMoveInfo.findIdx===-1)return;let t=0;if(this.calcMeasureLineOffx(),this.measureLineMoveInfo.findIdx===0){const a=this.measureLineList[this.measureLineMoveInfo.findIdx+1];if(t=e.target.childAt(0).shape.x1+e.target.transform[4]||0,this.measureLineMoveInfo.offLeftX=t,t<this.drawWaveFromX||t>a.x+a.ins.x-1.5){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}else if(this.measureLineMoveInfo.findIdx===this.measureLineList.length-1){const a=this.measureLineList[this.measureLineMoveInfo.findIdx-1];if(!a)return;if(t=e.target.childAt(0).shape.x1+e.target.transform[4]||0,this.measureLineMoveInfo.offLeftX=t,t>this.waveFromLenPX+this.drawWaveFromX||t<a.x+a.ins.x-1.5){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}else{const a=this.measureLineList[this.measureLineMoveInfo.findIdx+1],s=this.measureLineList[this.measureLineMoveInfo.findIdx-1];if(t=e.target.childAt(0).shape.x1+e.target.transform[4]||0,this.measureLineMoveInfo.offLeftX=t,t>a.x+a.ins.x-1.5||t<s.x+s.ins.x-1.5){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}this.measureLineMoveInfo.x=e.target.x}calcMeasureLineOffx(){var t,a,s;const e=Math.round((this.measureLineMoveInfo.offLeftX-this.drawWaveFromX)/this.currentStep)+this.startPos;switch(this.measureLineMoveInfo.name){case"P1":this.currentLeadAnalyseValue.KeyPosByBeat.Pstart=e;break;case"P2":this.currentLeadAnalyseValue.KeyPosByBeat.Pend=e;break;case"R1":this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart=e;break;case"R2":this.currentLeadAnalyseValue.KeyPosByBeat.QRSend=e;break;case"T1":this.currentLeadAnalyseValue.KeyPosByBeat.Tstart=e;break;case"T2":this.currentLeadAnalyseValue.KeyPosByBeat.Tend=e;break}if(this.electricAxisAnalyse(),this.processEnlargeAnalysis(),this.isShowSyncAnalyseValue){const i=c(c({},((t=this.currentLeadAnalyseValue)==null?void 0:t.AnabyBeat)||{}),this.enlargeAnalysisData);this.modifyAnalysed.set(((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,m(c({},this.currentLeadAnalyseValue),{AnabyBeat:i,BeatID:((s=this.currentLeadAnalyseValue)==null?void 0:s.BeatID)||0}))}}processEnlargeAnalysis(){var t,a,s,i,o,h;const e={start_pos:this.startPos,Sensitivity:this.sensitivity,SampleRate:this.sampleRate,longdata:this.longdata};if((this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="R1")&&(this.enlargeAnalysisData.PR=Math.round(n.calcPRInterval(this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,this.sampleRate))),(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2")&&(this.enlargeAnalysisData.Pd=Math.round(n.calcPD(this.currentLeadAnalyseValue.KeyPosByBeat.Pend,this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,this.sampleRate))),(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2")&&(this.enlargeAnalysisData.QRSd=Math.round(n.calcQRSD(this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.sampleRate))),this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="T2"){const{QT:d,QTC:u}=n.calcQTAndQTCAndQTD(this.currentLeadAnalyseValue.KeyPosByBeat.Tend,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.analyseValue,+(((a=(t=this.conventionalECGConfig)==null?void 0:t.ecgReviewSetting)==null?void 0:a.QTd_algorithm)||1),((s=this.currentLeadAnalyseValue)==null?void 0:s.BeatID)||0,this.sampleRate);this.enlargeAnalysisData.QT=Math.round(d),this.enlargeAnalysisData.QTc=Math.round(u||(Array.isArray(this.enlargeAnalysisData.QTc)?this.enlargeAnalysisData.QTc[0]:this.enlargeAnalysisData.QTc))}if(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="T1"||this.measureLineMoveInfo.name==="T2"){this.enlargeAnalysisData.Td=Math.round(n.caclTD(this.currentLeadAnalyseValue.KeyPosByBeat.Tend,this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,this.sampleRate));const{TA:d}=n.calcTA(m(c({},e),{Tstart:this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,Tend:this.currentLeadAnalyseValue.KeyPosByBeat.Tend,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,TPpeak:this.currentLeadAnalyseValue.KeyPosByBeat.TPpeak}));this.enlargeAnalysisData.TtypeA=n.toFixedFun(d||0,2)}if(this.enlargeAnalysisData.Ptype=n.calcPstate(m(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend,data:this.longdata}))||"",this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2"){const{PA:d}=n.calcPA(m(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend,PPpeak:this.currentLeadAnalyseValue.KeyPosByBeat.PPpeak}));this.enlargeAnalysisData.PtypeA=n.toFixedFun(d||0,2)}if(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2"){const{qrs_morph_type:d,QA:u,QD:f,RA:p,RD:A,SD:L,RPD:g,SA:v,RPA:P}=n.calcQRS(m(c({},e),{QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend}));this.enlargeAnalysisData.QRStype=d||"",this.enlargeAnalysisData.QtypeA=n.toFixedFun(u||0,2),this.enlargeAnalysisData.QD=Math.round(f||0),this.enlargeAnalysisData.RtypeA=n.toFixedFun(p||0,2),this.enlargeAnalysisData.StypeA=n.toFixedFun(v||0,2),this.enlargeAnalysisData.RPA=n.toFixedFun(P||0,2),this.enlargeAnalysisData.RD=n.toFixedFun(A||0,2),this.enlargeAnalysisData.SD=n.toFixedFun(L||0,2),this.enlargeAnalysisData.RPD=n.toFixedFun(g||0,2);const I=n.calcSTJA(e.start_pos,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,e.Sensitivity,e.longdata);this.enlargeAnalysisData.STJtypeA=n.toFixedFun(I||0,2),this.enlargeAnalysisData.STstate=n.clacST(I||0,e.longdata)||"";const B=n.calcIaddIIaddIII(m(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((i=this.currentLeadAnalyseValue)==null?void 0:i.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}));this.enlargeAnalysisData.IandIIandIII=n.toFixedFun(B,2),this.enlargeAnalysisData.RV5Amp=n.toFixedFun(n.calcRv5(m(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((o=this.currentLeadAnalyseValue)==null?void 0:o.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}))||0,2)+"",this.enlargeAnalysisData.SV1Amp=n.toFixedFun(n.calcSv1(m(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((h=this.currentLeadAnalyseValue)==null?void 0:h.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}))||0,2)+""}}electricAxisAnalyse(){var a;const e={ComplexData:this.complexData,Data:this.normalData,BeatID:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,AnalyseValue:this.analyseValue,SampleRate:this.sampleRate,Sensitivity:this.sensitivity,leadNameList:this.leadNameList,start_pos:this.startPos};if(this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2"){this.enlargeAnalysisData.PAxis=n.calcPelectricAxis(m(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend}));return}const t=()=>{let s=Math.abs(this.enlargeAnalysisData.QRSAxis-this.enlargeAnalysisData.TAxis);s>180&&(s=360-s),this.currentLeadAnalyseValue.AnabyBeat.QRS_T=s};if(this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2"){this.enlargeAnalysisData.QRSAxis=n.calcQRSelectricAxis(m(c({},e),{QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart})),t();return}if(this.measureLineMoveInfo.name==="T1"||this.measureLineMoveInfo.name==="T2"){this.enlargeAnalysisData.TAxis=n.calcTelectricAxis(m(c({},e),{QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,Tend:this.currentLeadAnalyseValue.KeyPosByBeat.Tend})),t();return}}calculatedValue(){var f,p,A,L;const e=(f=this.M1)==null?void 0:f.childOfName("Line_M1"),t=(p=this.M2)==null?void 0:p.childOfName("Line_M2");if(!e||!t)return;const a=e.shape.x1+(e.transform&&e.transform[4]||0),s=t.shape.x1+(t.transform&&t.transform[4]||0),i=Math.abs(a-s),o=n.calcMs(i,this.currentSpeedValue,this.gridConfig.cellMg,this.magnification);this.difference.timeDifference=o;const h=parseInt(`${(a-this.drawWaveFromX)/this.currentStep}`),d=parseInt(`${(s-this.drawWaveFromX)/this.currentStep}`);let u=[];if(this.leadNameActive.val===-1?u=((A=this.waveFromGroup)==null?void 0:A.childAt(this.waveFromGroup.childCount()-1)).shape.points||[]:u=((L=this.waveFromIns)==null?void 0:L.shape.points)||[],d>0&&h>0&&d<=u.length-1&&h<=u.length-1){const v=(Math.abs(u[d][1]-u[h][1])/this.currentSens).toFixed(2);this.difference.amplitudeDifference=v}else this.difference.amplitudeDifference=""}toggleGain(e){if(e){this.currentGainIdx<this.gains.length-1&&(this.currentGainIdx+=1,this.currentSens=this.gains[this.currentGainIdx].value*this.gridConfig.cellMg*this.magnification,this.toggleRender());return}this.currentGainIdx>0&&this.currentGainIdx<=this.gains.length-1&&(this.currentGainIdx-=1,this.currentSens=this.gains[this.currentGainIdx].value*this.gridConfig.cellMg*this.magnification,this.toggleRender())}toggleSpeeds(e){console.log("toggleSpeed",this.speeds,this.currentSpeedIdx);const t=()=>{const a=n.getStepForSpeed(this.currentSpeedValue,this.gridConfig.cellMg,this.sampleRate);this.currentStep=a*this.magnification};if(e){this.currentSpeedIdx<this.speeds.length-1&&(this.currentSpeedIdx+=1,this.currentSpeedValue=this.speeds[this.currentSpeedIdx].value,t(),this.toggleRender());return}this.currentSpeedIdx>0&&this.currentSpeedIdx<=this.speeds.length-1&&(this.currentSpeedIdx-=1,this.currentSpeedValue=this.speeds[this.currentSpeedIdx].value,t(),this.toggleRender())}toggleBeaadId(e){var t,a;if(e){this.currentLeadAnalyseValueIdx<this.analyseValue.length-1&&(this.currentLeadAnalyseValueIdx+=1,this.currentLeadAnalyseValue=m(c({},this.analyseValue[this.currentLeadAnalyseValueIdx]),{BeatCount:((t=this.currentLeadAnalyseValue)==null?void 0:t.BeatCount)||0}),this.toggleRender());return}this.currentLeadAnalyseValueIdx>1&&this.currentLeadAnalyseValueIdx<=this.analyseValue.length-1&&(this.currentLeadAnalyseValueIdx-=1,this.currentLeadAnalyseValue=m(c({},this.analyseValue[this.currentLeadAnalyseValueIdx]),{BeatCount:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatCount)||0}),this.toggleRender())}toggleRender(){this.createLeadHead(),this.createSensAndSpeed(),this.drawWaveFrom(),this.drawMeasureLine(),this.calculatedValue(),this.electricAxisAnalyse(),this.processEnlargeAnalysis()}mainBoxDbClick(){const e=Date.now();e-this.dbClickTime<400?(this.dbClickTime=0,this.$emit("notifyCancelEnlargr"),this.$emit("update:isShowEnlargeWave",!1),this.isShowSyncAnalyseValue&&this.isSyncAnalyseValue&&this.$emit("notifyModifyAnalyse",this.modifyAnalysed)):this.dbClickTime=e}};r([l.Prop({default:()=>""})],exports.default.prototype,"className",2);r([l.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"width",2);r([l.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"height",2);r([l.Prop({required:!0})],exports.default.prototype,"gridConfig",2);r([l.Prop({required:!0})],exports.default.prototype,"speedValue",2);r([l.Prop({default:1})],exports.default.prototype,"sens",2);r([l.Prop({default:1})],exports.default.prototype,"step",2);r([l.Prop({required:!0})],exports.default.prototype,"sampleRate",2);r([l.Prop({required:!0})],exports.default.prototype,"sensitivity",2);r([l.Prop({required:!0,default:()=>[]})],exports.default.prototype,"complexData",2);r([l.Prop({required:!0,default:()=>[]})],exports.default.prototype,"normalData",2);r([l.Prop({default:!1})],exports.default.prototype,"isShowEnlargeWave",2);r([l.Prop({default:!0})],exports.default.prototype,"isShowSyncAnalyseValue",2);r([l.Prop({default:!1})],exports.default.prototype,"isSyncAnalyseValueCheck",2);r([l.Prop({default:()=>({leadHedeWidth:20,leadHedeColor:"#000",leadHedeLineWidth:2})})],exports.default.prototype,"leadHeadConfig",2);r([l.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);r([l.Prop({default:5})],exports.default.prototype,"magnification",2);r([l.Prop({default:()=>[]})],exports.default.prototype,"leadNameList",2);r([l.Prop({required:!0})],exports.default.prototype,"activeLeadIdx",2);r([l.Prop({required:!0})],exports.default.prototype,"activeLeadAnalyseValue",2);r([l.Prop({required:!0})],exports.default.prototype,"analyseValue",2);r([l.Prop({default:"ECG"})],exports.default.prototype,"typeClass",2);r([l.Prop({default:()=>["black","red","orange","yellow","green","#4B0082","blue","purple","#FFB6C1","#EE82EE","#6A5ACD","#00FFFF"]})],exports.default.prototype,"leadColors",2);r([l.Prop({default:n.AnalysisMode.CompoundWave})],exports.default.prototype,"enlargeWaveMode",2);r([l.Prop({required:!0})],exports.default.prototype,"conventionalECGConfig",2);r([l.Prop({default:()=>[]})],exports.default.prototype,"gains",2);r([l.Prop({default:()=>[]})],exports.default.prototype,"speeds",2);r([V.Watch("activeLeadIdx")],exports.default.prototype,"watchActiveLeadIdx",1);r([V.Watch("leadNameList",{deep:!0,immediate:!0})],exports.default.prototype,"watchLeadNameList",1);exports.default=r([C.default({name:"Methods"})],exports.default);
|
|
1
|
+
"use strict";var M=Object.defineProperty,D=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var x=(e,t,a)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,c=(e,t)=>{for(var a in t||(t={}))R.call(t,a)&&x(e,a,t[a]);if(S)for(var a of S(t))w.call(t,a)&&x(e,a,t[a]);return e},y=(e,t)=>D(e,F(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),b=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js");const o=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js"),V=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js"),n=require("@costy-plus/utils"),m=require("zrender"),C=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Q=C(T);var W=Object.defineProperty,G=Object.getOwnPropertyDescriptor,r=(e,t,a,s)=>{for(var i=s>1?void 0:s?G(t,a):t,l=e.length-1,h;l>=0;l--)(h=e[l])&&(i=(s?h(t,a,i):h(i))||i);return s&&i&&W(t,a,i),i};exports.default=class extends Q.default{constructor(){super(...arguments),this.AnalysisMode=n.AnalysisMode,this.AnalyseParameterTable=n.AnalyseParameterTable,this.sceneIns=Object.freeze(null),this.AssistCtx=Object.freeze(null),this.leadNameIns=Object.freeze(null),this.sensAndSpeedIns=Object.freeze(null),this.waveFromIns=Object.freeze(null),this.waveFromGroup=Object.freeze(null),this.measureGroup=Object.freeze(null),this.leadHeadIns=Object.freeze(null),this.M1=Object.freeze(null),this.M2=Object.freeze(null),this.P1=Object.freeze(null),this.P2=Object.freeze(null),this.R1=Object.freeze(null),this.R2=Object.freeze(null),this.T1=Object.freeze(null),this.T2=Object.freeze(null),this.bottomSafeAreaH=Object.freeze(63),this.drawWaveFromX=Object.freeze(0),this.dbClickTime=Object.freeze(0),this.startPos=Object.freeze(0),this.currentGainIdx=Object.freeze(0),this.currentSpeedIdx=Object.freeze(0),this.currentLeadAnalyseValueIdx=Object.freeze(0),this.longdata=Object.freeze(void 0),this.modifyAnalysed=Object.freeze(null),this.measureLineMoveInfo=Object.freeze({x:0,findIdx:0,name:"",offLeftX:0}),this.measureLineList=Object.freeze([]),this.waveFromLenPX=Object.freeze(0),this.leadNames=[],this.leadNameActive={name:"",val:-2},this.isSyncAnalyseValue=!1,this.currentSens=0,this.currentSpeedValue=0,this.currentStep=0,this.currentLeadAnalyseValue=null,this.complexAnalysisvalue=Object.freeze(null),this.enlargeAnalysisData=null,this.difference={timeDifference:0,amplitudeDifference:""}}watchActiveLeadIdx(e){var t;this.leadNameActive=this.leadNames.find(a=>a.val===e)||{name:"",val:-2},(t=this.leadNameIns)==null||t.attr({style:{text:this.leadNameActive.name}})}watchLeadNameList(e){this.leadNames=e.map((t,a)=>{var s;return this.activeLeadIdx===a&&((s=this.leadNameIns)==null||s.attr({style:{text:n.LeadNameTexts[t]}}),this.leadNameActive={name:n.LeadNameTexts[t],val:a}),{name:n.LeadNameTexts[t],val:a}}).concat({name:"ALL",val:-1})}get containerWH(){return{width:this.width-230,height:this.height-40-50}}destroyed(){var e,t,a,s,i,l,h,d,u,f,p;(e=this.waveFromGroup)==null||e.removeAll(),(t=this.measureGroup)==null||t.removeAll(),(a=this.M1)==null||a.removeAll(),(s=this.M2)==null||s.removeAll(),(i=this.P1)==null||i.removeAll(),(l=this.P2)==null||l.removeAll(),(h=this.R1)==null||h.removeAll(),(d=this.R2)==null||d.removeAll(),(u=this.T1)==null||u.removeAll(),(f=this.T2)==null||f.removeAll();try{(p=this.sceneIns)==null||p.dispose()}catch(A){}}created(){this.modifyAnalysed=new Map,this.measureLineList=[],this.measureLineMoveInfo={x:0,findIdx:0,name:"",offLeftX:0},this.currentGainIdx=this.gains.findIndex(e=>e.value===this.sens/this.gridConfig.cellMg),this.currentSpeedIdx=this.speeds.findIndex(e=>e.value===this.speedValue),this.currentLeadAnalyseValueIdx=this.analyseValue.findIndex(e=>{var t;return e.BeatID===((t=this.activeLeadAnalyseValue)==null?void 0:t.BeatID)}),this.currentSens=this.sens*this.magnification,this.currentSpeedValue=this.speedValue,this.currentStep=this.step*this.magnification,this.currentLeadAnalyseValue=m.util.clone(this.activeLeadAnalyseValue),this.complexAnalysisvalue=m.util.clone(this.analyseValue[0])||null,this.isSyncAnalyseValueCheck&&(this.isSyncAnalyseValue=!0),this.processEnlargeAnalysisData()}processEnlargeAnalysisData(){var e,t,a,s,i;this.enlargeAnalysisData=y(c({},((e=this.currentLeadAnalyseValue)==null?void 0:e.AnabyBeat)||{}),{AtrialRate:((a=(t=this.complexAnalysisvalue)==null?void 0:t.AnabyBeat)==null?void 0:a.AtrialRate)||0,VentricularRate:((i=(s=this.complexAnalysisvalue)==null?void 0:s.AnabyBeat)==null?void 0:i.VentricularRate)||0,QTc:""})}selectLeadName(e){var t;this.leadNameActive=e,(t=this.leadNameIns)==null||t.attr({style:{text:e.name}}),this.drawWaveFrom()}createLeadHead(){var s,i;const t=this.containerWH.height/2,a=this.leadHeadConfig.leadHedeWidth/4;this.leadHeadIns&&((s=this.sceneIns)==null||s.remove(this.leadHeadIns)),this.leadHeadIns=new m.Polyline({cursor:"",shape:{points:[[0+0,0+t],[a+0,0+t],[a+0,-this.currentSens+t],[3*a+0,-this.currentSens+t],[3*a+0,0+t],[4*a+0,0+t]]},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}}),(i=this.sceneIns)==null||i.add(this.leadHeadIns)}createLeadName(){var e;this.leadNameIns=new m.Text({style:{x:this.leadHeadConfig.leadHedeWidth,y:this.containerWH.height/2-this.leadConfig.fontSize,text:this.leadNameActive.name,fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily}}),(e=this.sceneIns)==null||e.add(this.leadNameIns)}createSensAndSpeed(){var e,t;this.sensAndSpeedIns&&((e=this.sceneIns)==null||e.remove(this.sensAndSpeedIns)),this.sensAndSpeedIns=new m.Text({cursor:"",style:{x:this.leadHeadConfig.leadHedeWidth,y:this.containerWH.height-50,text:`${this.currentSens/this.gridConfig.cellMg/this.magnification}mm/mV ${this.currentSpeedValue}mm/s`,fontSize:12,fill:"#FF0080",fontFamily:this.leadConfig.fontFamily}}),(t=this.sceneIns)==null||t.add(this.sensAndSpeedIns)}createWaveFrom(){var e;this.waveFromIns=new m.Polyline({cursor:"",shape:{points:[]},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}}),(e=this.sceneIns)==null||e.add(this.waveFromIns)}drawWaveFrom(){this.leadNameActive.val===-1?this.drawAllLead():this.drawSingleLead(),this.calculatedValue(),this.electricAxisAnalyse(),this.processEnlargeAnalysis()}drawAllLead(){var t,a,s;(t=this.waveFromIns)==null||t.hide(),this.waveFromGroup?this.waveFromGroup.removeAll():this.waveFromGroup=new m.Group({name:"waveFromGroup"}),this.longdata=void 0;const e=this.containerWH.height/2;for(let i=0;i<this.leadNames.length-1;i++){const{beatData:l,startPos:h}=this.getWaveFrom(((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,this.leadNames[i].val);this.startPos=h,this.drawWaveFromX===0&&(this.waveFromLenPX=l.length*this.currentStep,this.drawWaveFromX=this.containerWH.width/2-this.waveFromLenPX/2+this.leadHeadConfig.leadHedeWidth),this.waveFromGroup.add(new m.Polyline({cursor:"",name:`${i}`,shape:{points:l.map((d,u)=>[u*this.currentStep+this.drawWaveFromX,-d+e])},style:{stroke:this.leadColors[i]||this.leadColors[i%this.leadColors.length],lineWidth:this.leadConfig.lineWidth}}))}(s=this.sceneIns)==null||s.add(this.waveFromGroup)}drawSingleLead(){var i,l,h;this.waveFromGroup&&((i=this.sceneIns)==null||i.remove(this.waveFromGroup));const{beatData:e,startPos:t,originData:a}=this.getWaveFrom();this.startPos=t,this.drawWaveFromX===0&&(this.waveFromLenPX=e.length*this.currentStep,this.drawWaveFromX=this.containerWH.width/2-this.waveFromLenPX/2+this.leadHeadConfig.leadHedeWidth),this.longdata=a;const s=this.containerWH.height/2;(l=this.waveFromIns)==null||l.attr({shape:{points:e.map((d,u)=>[u*this.currentStep+this.drawWaveFromX,-d+s])}}),(h=this.waveFromIns)==null||h.show()}getWaveFrom(e,t){var a;if(e=e!==void 0?e:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,console.log("this.normalData",t,this.leadNameActive.val),t=t!==void 0?t:this.leadNameActive.val,this.typeClass==="ECG"){const{beatData:s,startPos:i}=n.getLeadpoint({ComplexData:this.complexData,Data:this.normalData,AnalyseValue:this.analyseValue,BeatID:e,leadIdx:t,SampleRate:this.sampleRate});return{originData:s,beatData:s.map(l=>n.getActualY(this.sensitivity,l,this.currentSens)),startPos:i}}return{originData:[],beatData:[],startPos:-1}}drawMeasureLine(){var a,s,i,l,h,d,u,f,p,A,L,g,v,P;this.measureGroup?((a=this.sceneIns)==null||a.remove(this.measureGroup),this.measureGroup.removeAll()):this.measureGroup=new m.Group({name:"measureGroup"});const e=n.calcDistance(this.currentSpeedValue,this.gridConfig.cellMg,this.magnification),t={stroke:"#FF09FF",lineWidth:1.5};this.M1=this.createMeasureLineGroup("M1",this.drawWaveFromX+10,t),this.M2=this.createMeasureLineGroup("M2",this.drawWaveFromX+10+e,t),t.stroke="blue",this.P1=this.createMeasureLineGroup("P1",((((i=(s=this.currentLeadAnalyseValue)==null?void 0:s.KeyPosByBeat)==null?void 0:i.Pstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.P2=this.createMeasureLineGroup("P2",((((h=(l=this.currentLeadAnalyseValue)==null?void 0:l.KeyPosByBeat)==null?void 0:h.Pend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.R1=this.createMeasureLineGroup("R1",((((u=(d=this.currentLeadAnalyseValue)==null?void 0:d.KeyPosByBeat)==null?void 0:u.QRSstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.R2=this.createMeasureLineGroup("R2",((((p=(f=this.currentLeadAnalyseValue)==null?void 0:f.KeyPosByBeat)==null?void 0:p.QRSend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.T1=this.createMeasureLineGroup("T1",((((L=(A=this.currentLeadAnalyseValue)==null?void 0:A.KeyPosByBeat)==null?void 0:L.Tstart)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.T2=this.createMeasureLineGroup("T2",((((v=(g=this.currentLeadAnalyseValue)==null?void 0:g.KeyPosByBeat)==null?void 0:v.Tend)||0)-this.startPos)*this.currentStep+this.drawWaveFromX,t),this.measureGroup.add(this.M1),this.measureGroup.add(this.M2),this.measureGroup.add(this.P1),this.measureGroup.add(this.P2),this.measureGroup.add(this.R1),this.measureGroup.add(this.R2),this.measureGroup.add(this.T1),this.measureGroup.add(this.T2),(P=this.sceneIns)==null||P.add(this.measureGroup)}createMeasureLineGroup(e,t,a){const s=new m.Group({name:e,draggable:"horizontal",ondrag:this.measureLineDrag}),i=this.containerWH.height-this.bottomSafeAreaH;return s.add(new m.Line({cursor:"w-resize",name:`Line_${e}`,shape:{x1:t,y1:0,x2:t,y2:i},style:a})),s.add(new m.Circle({name:"Circle",x:t,y:i,shape:{r:6},style:{fill:"#ccc"}})),s.add(new m.Text({cursor:"",name:"Text",style:{x:t-7,y:i+12+10,text:e,fontSize:12,fill:"#000",fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1"}})),e!=="M1"&&e!=="M2"&&(this.measureLineList=[...this.measureLineList,{ins:s,x:t}].sort((l,h)=>l.x-h.x)),s}measureLineDrag(e){e.target.name==="M1"||e.target.name==="M2"?this.calculatedValue():this.calcMeasureLineMove(e)}calcMeasureLineMove(e){if(e.target.name!==this.measureLineMoveInfo.name){const a=this.measureLineList.findIndex(s=>s.ins.name===e.target.name);this.measureLineMoveInfo.findIdx=a,this.measureLineMoveInfo.name=e.target.name}if(this.measureLineMoveInfo.findIdx===-1)return;let t=0;if(this.calcMeasureLineOffx(),this.measureLineMoveInfo.findIdx===0){const a=this.measureLineList[this.measureLineMoveInfo.findIdx+1];if(t=e.target.childAt(0).shape.x1+e.target.transform[4]||0,this.measureLineMoveInfo.offLeftX=t,t<this.drawWaveFromX||t>a.x+a.ins.x-1.5){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}else if(this.measureLineMoveInfo.findIdx===this.measureLineList.length-1){const a=this.measureLineList[this.measureLineMoveInfo.findIdx-1];if(!a)return;if(t=e.target.childAt(0).shape.x1+e.target.transform[4]||0,this.measureLineMoveInfo.offLeftX=t,t>this.waveFromLenPX+this.drawWaveFromX||t<a.x+a.ins.x-1.5){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}else{const a=this.measureLineList[this.measureLineMoveInfo.findIdx+1],s=this.measureLineList[this.measureLineMoveInfo.findIdx-1];if(t=e.target.childAt(0).shape.x1+e.target.transform[4]||0,this.measureLineMoveInfo.offLeftX=t,t>a.x+a.ins.x-1.5||t<s.x+s.ins.x-1.5){e.target.x=this.measureLineMoveInfo.x,this.measureLineMoveInfo.offLeftX=t;return}}this.measureLineMoveInfo.x=e.target.x}calcMeasureLineOffx(){var t,a,s;const e=Math.round((this.measureLineMoveInfo.offLeftX-this.drawWaveFromX)/this.currentStep)+this.startPos;switch(this.measureLineMoveInfo.name){case"P1":this.currentLeadAnalyseValue.KeyPosByBeat.Pstart=e;break;case"P2":this.currentLeadAnalyseValue.KeyPosByBeat.Pend=e;break;case"R1":this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart=e;break;case"R2":this.currentLeadAnalyseValue.KeyPosByBeat.QRSend=e;break;case"T1":this.currentLeadAnalyseValue.KeyPosByBeat.Tstart=e;break;case"T2":this.currentLeadAnalyseValue.KeyPosByBeat.Tend=e;break}if(this.electricAxisAnalyse(),this.processEnlargeAnalysis(),this.isShowSyncAnalyseValue){const i=c(c({},((t=this.currentLeadAnalyseValue)==null?void 0:t.AnabyBeat)||{}),this.enlargeAnalysisData);this.modifyAnalysed.set(((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,y(c({},this.currentLeadAnalyseValue),{AnabyBeat:i,BeatID:((s=this.currentLeadAnalyseValue)==null?void 0:s.BeatID)||0}))}}processEnlargeAnalysis(){var t,a,s,i,l,h;const e={start_pos:this.startPos,Sensitivity:this.sensitivity,SampleRate:this.sampleRate,longdata:this.longdata};if((this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="R1")&&(this.enlargeAnalysisData.PR=Math.round(n.calcPRInterval(this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,this.sampleRate))),(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2")&&(this.enlargeAnalysisData.Pd=Math.round(n.calcPD(this.currentLeadAnalyseValue.KeyPosByBeat.Pend,this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,this.sampleRate))),(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2")&&(this.enlargeAnalysisData.QRSd=Math.round(n.calcQRSD(this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.sampleRate))),this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="T2"){const{QT:d,QTC:u}=n.calcQTAndQTCAndQTD(this.currentLeadAnalyseValue.KeyPosByBeat.Tend,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.analyseValue,+(((a=(t=this.conventionalECGConfig)==null?void 0:t.ecgReviewSetting)==null?void 0:a.QTd_algorithm)||1),((s=this.currentLeadAnalyseValue)==null?void 0:s.BeatID)||0,this.sampleRate);this.enlargeAnalysisData.QT=Math.round(d),this.enlargeAnalysisData.QTc=Math.round(u||(Array.isArray(this.enlargeAnalysisData.QTc)?this.enlargeAnalysisData.QTc[0]:this.enlargeAnalysisData.QTc))}if(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="T1"||this.measureLineMoveInfo.name==="T2"){this.enlargeAnalysisData.Td=Math.round(n.caclTD(this.currentLeadAnalyseValue.KeyPosByBeat.Tend,this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,this.sampleRate));const{TA:d}=n.calcTA(y(c({},e),{Tstart:this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,Tend:this.currentLeadAnalyseValue.KeyPosByBeat.Tend,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,TPpeak:this.currentLeadAnalyseValue.KeyPosByBeat.TPpeak}));this.enlargeAnalysisData.TtypeA=n.toFixedFun(d||0,2)}if(this.enlargeAnalysisData.Ptype=n.calcPstate(y(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend,data:this.longdata}))||"",this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2"){const{PA:d}=n.calcPA(y(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend,PPpeak:this.currentLeadAnalyseValue.KeyPosByBeat.PPpeak}));this.enlargeAnalysisData.PtypeA=n.toFixedFun(d||0,2)}if(this.measureLineMoveInfo.name===""||this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2"){const{qrs_morph_type:d,QA:u,QD:f,RA:p,RD:A,SD:L,RPD:g,SA:v,RPA:P}=n.calcQRS(y(c({},e),{QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend}));this.enlargeAnalysisData.QRStype=d||"",this.enlargeAnalysisData.QtypeA=n.toFixedFun(u||0,2),this.enlargeAnalysisData.QD=Math.round(f||0),this.enlargeAnalysisData.RtypeA=n.toFixedFun(p||0,2),this.enlargeAnalysisData.StypeA=n.toFixedFun(v||0,2),this.enlargeAnalysisData.RPA=n.toFixedFun(P||0,2),this.enlargeAnalysisData.RD=n.toFixedFun(A||0,2),this.enlargeAnalysisData.SD=n.toFixedFun(L||0,2),this.enlargeAnalysisData.RPD=n.toFixedFun(g||0,2);const I=n.calcSTJA(e.start_pos,this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,e.Sensitivity,e.longdata);this.enlargeAnalysisData.STJtypeA=n.toFixedFun(I||0,2),this.enlargeAnalysisData.STstate=n.clacST(I||0,e.longdata)||"";const B=n.calcIaddIIaddIII(y(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((i=this.currentLeadAnalyseValue)==null?void 0:i.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}));this.enlargeAnalysisData.IandIIandIII=n.toFixedFun(B,2),this.enlargeAnalysisData.RV5Amp=n.toFixedFun(n.calcRv5(y(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((l=this.currentLeadAnalyseValue)==null?void 0:l.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}))||0,2)+"",this.enlargeAnalysisData.SV1Amp=n.toFixedFun(n.calcSv1(y(c({},e),{ComplexData:this.complexData,Data:this.normalData,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,BeatID:((h=this.currentLeadAnalyseValue)==null?void 0:h.BeatID)||0,AnalyseValue:this.analyseValue,leadNameList:this.leadNameList}))||0,2)+""}}electricAxisAnalyse(){var a;const e={ComplexData:this.complexData,Data:this.normalData,BeatID:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatID)||0,AnalyseValue:this.analyseValue,SampleRate:this.sampleRate,Sensitivity:this.sensitivity,leadNameList:this.leadNameList,start_pos:this.startPos};if(this.measureLineMoveInfo.name==="P1"||this.measureLineMoveInfo.name==="P2"){this.enlargeAnalysisData.PAxis=n.calcPelectricAxis(y(c({},e),{Pstart:this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,Pend:this.currentLeadAnalyseValue.KeyPosByBeat.Pend}));return}const t=()=>{let s=Math.abs(this.enlargeAnalysisData.QRSAxis-this.enlargeAnalysisData.TAxis);s>180&&(s=360-s),this.currentLeadAnalyseValue.AnabyBeat.QRS_T=s};if(this.measureLineMoveInfo.name==="R1"||this.measureLineMoveInfo.name==="R2"){this.enlargeAnalysisData.QRSAxis=n.calcQRSelectricAxis(y(c({},e),{QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,QRSstart:this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart})),t();return}if(this.measureLineMoveInfo.name==="T1"||this.measureLineMoveInfo.name==="T2"){this.enlargeAnalysisData.TAxis=n.calcTelectricAxis(y(c({},e),{QRSend:this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,Tend:this.currentLeadAnalyseValue.KeyPosByBeat.Tend})),t();return}}calculatedValue(){var f,p,A,L;const e=(f=this.M1)==null?void 0:f.childOfName("Line_M1"),t=(p=this.M2)==null?void 0:p.childOfName("Line_M2");if(!e||!t)return;const a=e.shape.x1+(e.transform&&e.transform[4]||0),s=t.shape.x1+(t.transform&&t.transform[4]||0),i=Math.abs(a-s),l=n.calcMs(i,this.currentSpeedValue,this.gridConfig.cellMg,this.magnification);this.difference.timeDifference=l;const h=parseInt(`${(a-this.drawWaveFromX)/this.currentStep}`),d=parseInt(`${(s-this.drawWaveFromX)/this.currentStep}`);let u=[];if(this.leadNameActive.val===-1?u=((A=this.waveFromGroup)==null?void 0:A.childAt(this.waveFromGroup.childCount()-1)).shape.points||[]:u=((L=this.waveFromIns)==null?void 0:L.shape.points)||[],d>0&&h>0&&d<=u.length-1&&h<=u.length-1){const v=(Math.abs(u[d][1]-u[h][1])/this.currentSens).toFixed(2);this.difference.amplitudeDifference=v}else this.difference.amplitudeDifference=""}toggleGain(e){if(e){this.currentGainIdx<this.gains.length-1&&(this.currentGainIdx+=1,this.currentSens=this.gains[this.currentGainIdx].value*this.gridConfig.cellMg*this.magnification,this.toggleRender());return}this.currentGainIdx>0&&this.currentGainIdx<=this.gains.length-1&&(this.currentGainIdx-=1,this.currentSens=this.gains[this.currentGainIdx].value*this.gridConfig.cellMg*this.magnification,this.toggleRender())}toggleSpeeds(e){console.log("toggleSpeed",this.speeds,this.currentSpeedIdx);const t=()=>{const a=n.getStepForSpeed(this.currentSpeedValue,this.gridConfig.cellMg,this.sampleRate);this.currentStep=a*this.magnification};if(e){this.currentSpeedIdx<this.speeds.length-1&&(this.currentSpeedIdx+=1,this.currentSpeedValue=this.speeds[this.currentSpeedIdx].value,t(),this.toggleRender());return}this.currentSpeedIdx>0&&this.currentSpeedIdx<=this.speeds.length-1&&(this.currentSpeedIdx-=1,this.currentSpeedValue=this.speeds[this.currentSpeedIdx].value,t(),this.toggleRender())}toggleBeaadId(e){var t,a,s,i,l,h;e?this.currentLeadAnalyseValueIdx<this.analyseValue.length-1&&(this.currentLeadAnalyseValueIdx+=1,this.currentLeadAnalyseValue=y(c({},this.analyseValue[this.currentLeadAnalyseValueIdx]),{BeatCount:((t=this.currentLeadAnalyseValue)==null?void 0:t.BeatCount)||0})):this.currentLeadAnalyseValueIdx>1&&this.currentLeadAnalyseValueIdx<=this.analyseValue.length-1&&(this.currentLeadAnalyseValueIdx-=1,this.currentLeadAnalyseValue=y(c({},this.analyseValue[this.currentLeadAnalyseValueIdx]),{BeatCount:((a=this.currentLeadAnalyseValue)==null?void 0:a.BeatCount)||0})),this.enlargeAnalysisData.PAxis=((i=(s=this.currentLeadAnalyseValue)==null?void 0:s.AnabyBeat)==null?void 0:i.PAxis)||0,this.enlargeAnalysisData.TAxis=((h=(l=this.currentLeadAnalyseValue)==null?void 0:l.AnabyBeat)==null?void 0:h.TAxis)||0,this.toggleRender()}toggleRender(){this.createLeadHead(),this.createSensAndSpeed(),this.drawWaveFrom(),this.drawMeasureLine(),this.calculatedValue(),this.electricAxisAnalyse(),this.processEnlargeAnalysis()}mainBoxDbClick(){const e=Date.now();e-this.dbClickTime<400?(this.dbClickTime=0,this.$emit("notifyCancelEnlargr"),this.$emit("update:isShowEnlargeWave",!1),this.isShowSyncAnalyseValue&&this.isSyncAnalyseValue&&this.$emit("notifyModifyAnalyse",this.modifyAnalysed)):this.dbClickTime=e}};r([o.Prop({default:()=>""})],exports.default.prototype,"className",2);r([o.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"width",2);r([o.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"height",2);r([o.Prop({required:!0})],exports.default.prototype,"gridConfig",2);r([o.Prop({required:!0})],exports.default.prototype,"speedValue",2);r([o.Prop({default:1})],exports.default.prototype,"sens",2);r([o.Prop({default:1})],exports.default.prototype,"step",2);r([o.Prop({required:!0})],exports.default.prototype,"sampleRate",2);r([o.Prop({required:!0})],exports.default.prototype,"sensitivity",2);r([o.Prop({required:!0,default:()=>[]})],exports.default.prototype,"complexData",2);r([o.Prop({required:!0,default:()=>[]})],exports.default.prototype,"normalData",2);r([o.Prop({default:!1})],exports.default.prototype,"isShowEnlargeWave",2);r([o.Prop({default:!0})],exports.default.prototype,"isShowSyncAnalyseValue",2);r([o.Prop({default:!1})],exports.default.prototype,"isSyncAnalyseValueCheck",2);r([o.Prop({default:()=>({leadHedeWidth:20,leadHedeColor:"#000",leadHedeLineWidth:2})})],exports.default.prototype,"leadHeadConfig",2);r([o.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);r([o.Prop({default:5})],exports.default.prototype,"magnification",2);r([o.Prop({default:()=>[]})],exports.default.prototype,"leadNameList",2);r([o.Prop({required:!0})],exports.default.prototype,"activeLeadIdx",2);r([o.Prop({required:!0})],exports.default.prototype,"activeLeadAnalyseValue",2);r([o.Prop({required:!0})],exports.default.prototype,"analyseValue",2);r([o.Prop({default:"ECG"})],exports.default.prototype,"typeClass",2);r([o.Prop({default:()=>["black","red","orange","yellow","green","#4B0082","blue","purple","#FFB6C1","#EE82EE","#6A5ACD","#00FFFF"]})],exports.default.prototype,"leadColors",2);r([o.Prop({default:n.AnalysisMode.CompoundWave})],exports.default.prototype,"enlargeWaveMode",2);r([o.Prop({required:!0})],exports.default.prototype,"conventionalECGConfig",2);r([o.Prop({default:()=>[]})],exports.default.prototype,"gains",2);r([o.Prop({default:()=>[]})],exports.default.prototype,"speeds",2);r([V.Watch("activeLeadIdx")],exports.default.prototype,"watchActiveLeadIdx",1);r([V.Watch("leadNameList",{deep:!0,immediate:!0})],exports.default.prototype,"watchLeadNameList",1);exports.default=r([b.default({name:"Methods"})],exports.default);
|
package/package.json
CHANGED
package/index.ts
DELETED