costy-plus 1.0.70-0 → 1.0.72-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.
@@ -50,8 +50,8 @@ let g = class extends E {
50
50
  };
51
51
  }
52
52
  destroyed() {
53
- var e, t, i, s, a, o, n, d, l, f, r;
54
- this.sceneInsEventOff(), (e = this.rowAndColwaveFromGroup) == null || e.removeAll(), (t = this.singleWaveFromGroup) == null || t.removeAll(), (i = this.addwaveFromGroup) == null || i.removeAll(), (s = this.leadHeadGroup) == null || s.removeAll(), (a = this.splitLineGroup) == null || a.removeAll(), (o = this.leadHeadNameGroup) == null || o.removeAll(), (n = this.leadHeadOffAndDelGroup) == null || n.removeAll(), (d = this.rulerGroup) == null || d.removeAll(), (l = this.arrowGroup) == null || l.removeAll(), (f = this.heardBeatLineGroup) == null || f.removeAll(), (r = this.sceneIns) == null || r.dispose();
53
+ var e, t, i, s, a, o, n, r, f, l, d;
54
+ this.sceneInsEventOff(), (e = this.rowAndColwaveFromGroup) == null || e.removeAll(), (t = this.singleWaveFromGroup) == null || t.removeAll(), (i = this.addwaveFromGroup) == null || i.removeAll(), (s = this.leadHeadGroup) == null || s.removeAll(), (a = this.splitLineGroup) == null || a.removeAll(), (o = this.leadHeadNameGroup) == null || o.removeAll(), (n = this.leadHeadOffAndDelGroup) == null || n.removeAll(), (r = this.rulerGroup) == null || r.removeAll(), (f = this.arrowGroup) == null || f.removeAll(), (l = this.heardBeatLineGroup) == null || l.removeAll(), (d = this.sceneIns) == null || d.dispose();
55
55
  }
56
56
  initCreatedConfig() {
57
57
  this.vuescrollWH.width = this.width, this.vuescrollWH.height = this.height, this.initConfig();
@@ -214,16 +214,16 @@ let g = class extends E {
214
214
  (e = this.sceneIns) == null || e.off("mousemove", this.sceneInsMousemove), (t = this.sceneIns) == null || t.off("mousedown", this.sceneInsMouseDown), (i = this.sceneIns) == null || i.off("mouseup", this.sceneInsMouseUp);
215
215
  }
216
216
  drawLeadHead() {
217
- var o, n, d, l, f;
217
+ var o, n, r, f, l;
218
218
  (o = this.leadHeadGroup) == null || o.removeAll(), (n = this.sceneIns) == null || n.remove(this.leadHeadGroup);
219
219
  let e = "", t = !1, i = 0, s = 0;
220
- for (let r = 0; r <= this.leadModel.column; r++) {
221
- s = r * this.leadModel.line;
220
+ for (let d = 0; d <= this.leadModel.column; d++) {
221
+ s = d * this.leadModel.line;
222
222
  e:
223
223
  for (let h = 1; h <= this.leadModel.line; h++) {
224
224
  if (!(this.waveConfigs || [])[h - 1 + s])
225
225
  break e;
226
- !this.waveConfigs[h - 1 + s].isShowLeadHead || (t = !1, e = (this.leadNames || [])[h - 1 + s] || "", this.waveConfigs[h - 1 + s].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(e) && (t = !0), i = this.waveConfigs[h - 1 + s].posX ? this.waveConfigs[h - 1 + s].posX - this.leadHeadConfig.leadHedeWidth : 0, (d = this.leadHeadGroup) == null || d.add(
226
+ !this.waveConfigs[h - 1 + s].isShowLeadHead || (t = !1, e = (this.leadNames || [])[h - 1 + s] || "", this.waveConfigs[h - 1 + s].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(e) && (t = !0), i = this.waveConfigs[h - 1 + s].posX ? this.waveConfigs[h - 1 + s].posX - this.leadHeadConfig.leadHedeWidth : 0, (r = this.leadHeadGroup) == null || r.add(
227
227
  this.createLeadHead(
228
228
  i,
229
229
  this.waveConfigs[h - 1 + s].posY || h * this.splitBlockHeight,
@@ -234,16 +234,16 @@ let g = class extends E {
234
234
  }
235
235
  }
236
236
  let a = null;
237
- for (let r = 0; r < this.leadModel.add; r++)
238
- !this.waveConfigs[this.longLeadConfig.leadIdxs[r]] || (a = this.waveConfigs[this.longLeadConfig.leadIdxs[r]], e = this.leadNames[this.longLeadConfig.leadNames[this.longLeadConfig.leadNames[r]]], t = !1, a.gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(e) && (t = !0), i = a.posX ? a.posX - this.leadHeadConfig.leadHedeWidth : 0, (l = this.leadHeadGroup) == null || l.add(
237
+ for (let d = 0; d < this.leadModel.add; d++)
238
+ !this.waveConfigs[this.longLeadConfig.leadIdxs[d]] || (a = this.waveConfigs[this.longLeadConfig.leadIdxs[d]], e = this.leadNames[this.longLeadConfig.leadNames[this.longLeadConfig.leadNames[d]]], t = !1, a.gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(e) && (t = !0), i = a.posX ? a.posX - this.leadHeadConfig.leadHedeWidth : 0, (f = this.leadHeadGroup) == null || f.add(
239
239
  this.createLeadHead(
240
240
  i,
241
- a.posY || (r + 1 + this.leadModel.line) * this.splitBlockHeight,
241
+ a.posY || (d + 1 + this.leadModel.line) * this.splitBlockHeight,
242
242
  S(a.gain, this.gridConfig.cellMg),
243
243
  t
244
244
  )
245
245
  ));
246
- a = null, (f = this.sceneIns) == null || f.add(this.leadHeadGroup);
246
+ a = null, (l = this.sceneIns) == null || l.add(this.leadHeadGroup);
247
247
  }
248
248
  createLeadHead(e, t, i, s) {
249
249
  const a = this.leadHeadConfig.leadHedeWidth / 4;
@@ -284,23 +284,23 @@ let g = class extends E {
284
284
  });
285
285
  }
286
286
  drawColSplitLine() {
287
- var o, n, d, l, f;
287
+ var o, n, r, f, l;
288
288
  (o = this.splitLineGroup) == null || o.removeAll(), (n = this.sceneIns) == null || n.remove(this.splitLineGroup);
289
289
  const e = (this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / (this.leadModel.column || 1);
290
290
  if (this.splitPoint = e, this.leadModel.isSingleMode) {
291
- const r = W(
291
+ const d = W(
292
292
  this.waveConfigs[this.singleModeConfig.defaultSelect].speed,
293
293
  this.gridConfig.cellMg,
294
294
  this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate
295
295
  ), h = A(
296
- Math.ceil(this.splitPoint / (r || 1)) || 0,
296
+ Math.ceil(this.splitPoint / (d || 1)) || 0,
297
297
  this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0
298
298
  ), C = parseInt(`${h / 1e3 % 60}`, 10);
299
- this.splitPoint = C * (this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0) * (r || 0);
299
+ this.splitPoint = C * (this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0) * (d || 0);
300
300
  }
301
301
  let t = 0, i = 0, s = 0, a = 0;
302
- for (let r = 1; r <= this.leadModel.column - 1; r++) {
303
- t = r * e + this.leadHeadConfig.leadHedeWidth, i = r * this.leadModel.line;
302
+ for (let d = 1; d <= this.leadModel.column - 1; d++) {
303
+ t = d * e + this.leadHeadConfig.leadHedeWidth, i = d * this.leadModel.line;
304
304
  e:
305
305
  for (let h = 1; h <= this.leadModel.line; h++) {
306
306
  if (!(this.waveConfigs || [])[h - 1 + i])
@@ -309,14 +309,14 @@ let g = class extends E {
309
309
  continue e;
310
310
  if ((this.waveConfigs || [])[h - 1 + i].posX !== void 0 && (t = (this.waveConfigs || [])[h - 1 + i].posX), s = (this.waveConfigs || [])[h - 1 + i].leadIdx, s === void 0)
311
311
  break;
312
- a = S((this.waveConfigs || [])[h - 1 + i].gain, this.gridConfig.cellMg), (this.waveConfigs || [])[h - 1 + i].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.leadNames[s]) ? (d = this.splitLineGroup) == null || d.add(
312
+ a = S((this.waveConfigs || [])[h - 1 + i].gain, this.gridConfig.cellMg), (this.waveConfigs || [])[h - 1 + i].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.leadNames[s]) ? (r = this.splitLineGroup) == null || r.add(
313
313
  this.creatSplitLine(
314
314
  t,
315
315
  ((this.waveConfigs || [])[h - 1 + i].posY || h * this.splitBlockHeight) - (a || 0) / 2 * 0.5,
316
316
  a,
317
317
  !0
318
318
  )
319
- ) : (l = this.splitLineGroup) == null || l.add(
319
+ ) : (f = this.splitLineGroup) == null || f.add(
320
320
  this.creatSplitLine(
321
321
  t,
322
322
  ((this.waveConfigs || [])[h - 1 + i].posY || h * this.splitBlockHeight) - (a || 0) * 0.5,
@@ -325,7 +325,7 @@ let g = class extends E {
325
325
  );
326
326
  }
327
327
  }
328
- (f = this.sceneIns) == null || f.add(this.splitLineGroup);
328
+ (l = this.sceneIns) == null || l.add(this.splitLineGroup);
329
329
  }
330
330
  creatSplitLine(e, t, i, s) {
331
331
  return new P({
@@ -367,7 +367,7 @@ let g = class extends E {
367
367
  (s = this.sceneIns) == null || s.add(i), (a = this.sceneIns) == null || a.add(t);
368
368
  }
369
369
  drawRuler(e = 0) {
370
- var n, d, l;
370
+ var n, r, f;
371
371
  if (this.timersCopy = e, !this.rulerConfig.isShow)
372
372
  return;
373
373
  const t = this.dataTotalTimes / 1e3;
@@ -376,21 +376,21 @@ let g = class extends E {
376
376
  if (this.leadModel.isContinuous)
377
377
  a = t * 5;
378
378
  else if (!this.leadModel.add && o) {
379
- const f = L(this.splitPoint, o), r = A(f, this.rulerConfig.sampleRate || 0) / 1e3;
380
- a = e + r;
379
+ const l = L(this.splitPoint, o), d = A(l, this.rulerConfig.sampleRate || 0) / 1e3;
380
+ a = e + d;
381
381
  }
382
- for (let f = e; f <= a; f = +(f + 0.1).toFixed(1))
383
- f !== e && (i += this.rulerStep), f % 1 === 0 ? (s = this.canvasContainer.height - 10, (n = this.rulerGroup) == null || n.add(new I({
382
+ for (let l = e; l <= a; l = +(l + 0.1).toFixed(1))
383
+ l !== e && (i += this.rulerStep), l % 1 === 0 ? (s = this.canvasContainer.height - 10, (n = this.rulerGroup) == null || n.add(new I({
384
384
  cursor: "",
385
385
  style: {
386
386
  x: i,
387
387
  y: s - 15,
388
- text: f + "",
388
+ text: l + "",
389
389
  fontSize: 13,
390
390
  fontFamily: this.fontFamily,
391
391
  fill: "#FF0080"
392
392
  }
393
- }))) : s = this.canvasContainer.height - 5, (d = this.rulerGroup) == null || d.add(new P({
393
+ }))) : s = this.canvasContainer.height - 5, (r = this.rulerGroup) == null || r.add(new P({
394
394
  cursor: "",
395
395
  shape: {
396
396
  x1: i,
@@ -403,7 +403,7 @@ let g = class extends E {
403
403
  lineWidth: 2
404
404
  }
405
405
  }));
406
- (l = this.sceneIns) == null || l.add(this.rulerGroup);
406
+ (f = this.sceneIns) == null || f.add(this.rulerGroup);
407
407
  }
408
408
  drawWaveFrom() {
409
409
  var e, t, i;
@@ -417,11 +417,11 @@ let g = class extends E {
417
417
  this.waveConfigs[this.singleModeConfig.defaultSelect].speed,
418
418
  this.gridConfig.cellMg,
419
419
  this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate
420
- ), n = S(this.waveConfigs[this.singleModeConfig.defaultSelect].gain, this.gridConfig.cellMg), d = [], l = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
421
- for (let f = 0; f < 1; f++) {
422
- e = f * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0;
423
- for (let r = 1; r <= l; r++)
424
- t = r * this.splitBlockHeight, r > 1 && (t *= 0.8, s = a, a = s + (this.slidingWindowInfo.points || 0)), r === 1 && (this.loopArrowY.rowAndCol = t), d.push({
420
+ ), n = S(this.waveConfigs[this.singleModeConfig.defaultSelect].gain, this.gridConfig.cellMg), r = [], f = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
421
+ for (let l = 0; l < 1; l++) {
422
+ e = l * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0;
423
+ for (let d = 1; d <= f; d++)
424
+ t = d * this.splitBlockHeight, d > 1 && (t *= 0.8, s = a, a = s + (this.slidingWindowInfo.points || 0)), d === 1 && (this.loopArrowY.rowAndCol = t), r.push({
425
425
  pos: [e, t],
426
426
  startInd: s,
427
427
  endInd: a,
@@ -430,44 +430,46 @@ let g = class extends E {
430
430
  data: i.slice(s, a).map((h, C) => this.waveConfigs[this.singleModeConfig.defaultSelect].leadName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[this.singleModeConfig.defaultSelect].leadName) ? M(this.waveConfigs[this.singleModeConfig.defaultSelect].sensitivity, h, n / 2) : M(this.waveConfigs[this.singleModeConfig.defaultSelect].sensitivity, h, n)).map((h, C) => [C * (o || 0), -h])
431
431
  });
432
432
  }
433
- return d;
433
+ return r;
434
434
  }
435
435
  createSingleWaveFrom() {
436
- var o, n, d;
437
- (o = this.singleWaveFromGroup) == null || o.removeAll();
438
- let e = this.getRednerSinglePoints(), t = A(this.slidingWindowInfo.points || 0, this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0), i = 0, s = 0, a = 0;
436
+ var n, r, f;
437
+ (n = this.singleWaveFromGroup) == null || n.removeAll();
438
+ let e = this.getRednerSinglePoints(), t = A(this.slidingWindowInfo.points || 0, this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0);
439
+ const i = t;
440
+ let s = 0, a = 0, o = 0;
439
441
  for (let l = 0; l < e.length && !(e[l].pos[1] > this.drawArea.height + this.bottomAreaHeight); l++)
440
- this.isLeadDel(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx) || (i = parseInt(`${t / 1e3 / 60}`, 10), s = parseInt(`${t / 1e3 % 60}`, 10), i = s === 60 ? i += 1 : i, i = i === 0 ? "00" : i < 10 ? `0${i}` : i, s = s === 0 || s === 60 ? "00" : s < 10 ? `0${s}` : s, (n = this.singleWaveFromGroup) == null || n.add(new x({
442
+ this.isLeadDel(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx) || (s = parseInt(`${t / 1e3 / 60}`, 10), a = parseInt(`${t / 1e3 % 60}`, 10), s = a === 60 ? s += 1 : s, s = s === 0 ? "00" : s < 10 ? `0${s}` : s, a = a === 0 || a === 60 ? "00" : a < 10 ? `0${a}` : a, (r = this.singleWaveFromGroup) == null || r.add(new x({
441
443
  cursor: "",
442
444
  name: this.singleModeConfig.defaultSelect + "_" + l,
443
445
  shape: {
444
- points: e[l].data.map(([f, r], h) => isNaN(r) ? (a === 0 && (a = h - 1, a = a < 0 ? 0 : a), [
445
- e[l].data[a][0] + e[l].pos[0],
446
- e[l].data[a][1] + e[l].pos[1]
447
- ]) : (a = 0, [
448
- f + e[l].pos[0],
449
- r + e[l].pos[1]
446
+ points: e[l].data.map(([d, h], C) => isNaN(h) ? (o === 0 && (o = C - 1, o = o < 0 ? 0 : o), [
447
+ e[l].data[o][0] + e[l].pos[0],
448
+ e[l].data[o][1] + e[l].pos[1]
449
+ ]) : (o = 0, [
450
+ d + e[l].pos[0],
451
+ h + e[l].pos[1]
450
452
  ]))
451
453
  },
452
454
  style: {
453
455
  stroke: this.leadConfig.lineColor,
454
456
  lineWidth: this.leadConfig.lineWidth
455
457
  },
456
- onclick: (f) => {
457
- this.onDbClickWaveFrom(f, "single");
458
+ onclick: (d) => {
459
+ this.onDbClickWaveFrom(d, "single");
458
460
  }
459
- })), +i * 60 <= this.dataTotalTimes && ((d = this.singleWaveFromGroup) == null || d.add(new I({
461
+ })), t / 1e3 < this.dataTotalTimes && ((f = this.singleWaveFromGroup) == null || f.add(new I({
460
462
  cursor: "",
461
463
  style: {
462
464
  x: e[l].pos[0],
463
465
  y: e[l].pos[1] - (e[l].sens || 0) / 2,
464
- text: l === 0 ? "00:00 \u5FC3\u7387" : `${i}:${s} \u5FC3\u7387`,
466
+ text: l === 0 ? "00:00 \u5FC3\u7387" : `${s}:${a} \u5FC3\u7387`,
465
467
  fontWeight: "bold",
466
468
  fontSize: 14,
467
469
  fill: "#FF0080",
468
470
  fontFamily: this.fontFamily
469
471
  }
470
- }))), l > 0 && (t += t)), this.createLeadName(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx, e[0].pos[0] - 10, e[0].pos[1] + 10), this.createLeadOffAndDel(
472
+ }))), l > 0 && (t += i)), this.createLeadName(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx, e[0].pos[0] - 10, e[0].pos[1] + 10), this.createLeadOffAndDel(
471
473
  this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx,
472
474
  e[0].pos[0] - 5,
473
475
  e[0].pos[1] - (e[l].sens || 0) / 2 - 15
@@ -475,7 +477,7 @@ let g = class extends E {
475
477
  this.singleWaveDataCopy = e, e = null;
476
478
  }
477
479
  drawLoopArrow(e = 0) {
478
- var l, f, r, h, C, w, m, G, B, O, N, R;
480
+ var f, l, d, h, C, w, m, G, B, O, N, R;
479
481
  if (this.drawLoopArrowStartPosIdx = e, !this.heartFight.isShow)
480
482
  return;
481
483
  this.heartFight.mode && this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = this.heartBeatPosition[this.heartFight.showIdxPai][this.heartFight.defaultSelect] || null, this.drawHeardBeatLine());
@@ -495,13 +497,13 @@ let g = class extends E {
495
497
  this.gridConfig.cellMg,
496
498
  this.waveConfigs[this.heartFight.showIdxPai].sampleRate
497
499
  );
498
- let d = 0;
500
+ let r = 0;
499
501
  for (let H = 0; H < (this.heartBeatPosition[this.heartFight.showIdxPai] || []).length; H++) {
500
502
  const p = this.heartBeatPosition[this.heartFight.showIdxPai][H];
501
- if (d = ((p == null ? void 0 : p.position) || 0) - e, !(e > ((p == null ? void 0 : p.position) || 0)) && !(!this.leadModel.isContinuous && !this.leadModel.add && d > (this.slidingWindowInfo.points || 0)) && !(this.leadModel.isSingleMode && d > (this.slidingWindowInfo.points || 0))) {
503
+ if (r = ((p == null ? void 0 : p.position) || 0) - e, !(e > ((p == null ? void 0 : p.position) || 0)) && !(!this.leadModel.isContinuous && !this.leadModel.add && r > (this.slidingWindowInfo.points || 0)) && !(this.leadModel.isSingleMode && r > (this.slidingWindowInfo.points || 0))) {
502
504
  if (((p == null ? void 0 : p.position) || 0) - this.addSlidingWindowInfo.startInd > (this.addSlidingWindowInfo.points || 0))
503
505
  break;
504
- t = d * (n || 0) + this.leadHeadConfig.leadHedeWidth - 9.5, a = 0, (r = this.arrowGroup) == null || r.add(new ee({
506
+ t = r * (n || 0) + this.leadHeadConfig.leadHedeWidth - 9.5, a = 0, (d = this.arrowGroup) == null || d.add(new ee({
505
507
  name: "arrow_box",
506
508
  shape: {
507
509
  points: [
@@ -516,7 +518,7 @@ let g = class extends E {
516
518
  ]
517
519
  },
518
520
  style: {
519
- fill: ((f = (l = this.currentHeardBeat) == null ? void 0 : l.heardBeat) == null ? void 0 : f.index) === (p == null ? void 0 : p.index) ? "blue" : "#ccc"
521
+ fill: ((l = (f = this.currentHeardBeat) == null ? void 0 : f.heardBeat) == null ? void 0 : l.index) === (p == null ? void 0 : p.index) ? "blue" : "#ccc"
520
522
  },
521
523
  onclick: (b) => {
522
524
  var k;
@@ -565,26 +567,26 @@ let g = class extends E {
565
567
  this.$emit("notifyHeardBeat", te.clone(e)), this.currentHeardBeat.heardBeat = e, this.currentHeardBeat.ele = t, this.drawHeardBeatLine();
566
568
  }
567
569
  drawHeardBeatLine(e = 0) {
568
- var n, d, l, f, r, h, C;
570
+ var n, r, f, l, d, h, C;
569
571
  if (!this.currentHeardBeat.heardBeat)
570
572
  return;
571
- (n = this.heardBeatLineGroup) == null || n.removeAll(), (d = this.sceneIns) == null || d.remove(this.heardBeatLineGroup);
573
+ (n = this.heardBeatLineGroup) == null || n.removeAll(), (r = this.sceneIns) == null || r.remove(this.heardBeatLineGroup);
572
574
  let t = {}, i = 0, s = this.getRednerPoints(), a = this.getAddRednerPoints(), o;
573
575
  e:
574
576
  for (let w = 0; w < s.length; w++) {
575
- t = ((l = this.analyseValues[w]) == null ? void 0 : l[this.currentHeardBeat.heardBeat.index].KeyPosByBeat) || {};
577
+ t = ((f = this.analyseValues[w]) == null ? void 0 : f[this.currentHeardBeat.heardBeat.index].KeyPosByBeat) || {};
576
578
  for (const m in t)
577
579
  if (["Pstart", "Pend", "QRSstart", "QRSend", "Tstart", "Tend"].includes(m) && Object.prototype.hasOwnProperty.call(t, m)) {
578
580
  if (i = (t[m] - this.slidingWindowInfo.startInd) * (s[w].step || 0), this.isLeadOff(w) || this.isLeadDel(w))
579
581
  continue;
580
582
  if (e > t[m] || !this.leadModel.isContinuous && t[m] - this.slidingWindowInfo.startInd > (this.slidingWindowInfo.points || 0) || (o = s[w], this.leadModel.isContinuous && w > this.leadModel.line - 1))
581
583
  break e;
582
- (f = this.heardBeatLineGroup) == null || f.add(this.createHeardBeatLine(o.pos[0] + i, o.pos[1]));
584
+ (l = this.heardBeatLineGroup) == null || l.add(this.createHeardBeatLine(o.pos[0] + i, o.pos[1]));
583
585
  }
584
586
  }
585
587
  e:
586
588
  for (let w = 0; w < a.length; w++) {
587
- t = ((r = this.analyseValues[w]) == null ? void 0 : r[this.currentHeardBeat.heardBeat.index].KeyPosByBeat) || {};
589
+ t = ((d = this.analyseValues[w]) == null ? void 0 : d[this.currentHeardBeat.heardBeat.index].KeyPosByBeat) || {};
588
590
  for (const m in t)
589
591
  if (["Pstart", "Pend", "QRSstart", "QRSend", "Tstart", "Tend"].includes(m)) {
590
592
  if (i = (t[m] - this.slidingWindowInfo.startInd) * (a[w].step || 0), this.isLeadOff(this.longLeadConfig.leadIdxs[w]) && this.isLeadDel(this.longLeadConfig.leadIdxs[w]))
@@ -618,12 +620,12 @@ let g = class extends E {
618
620
  getAddRednerPoints() {
619
621
  const e = [];
620
622
  let t = this.leadHeadConfig.leadHedeWidth, i = 0, s = 0, a = [], o = 0, n = 0;
621
- for (let d = 0; d < this.leadModel.add; d++)
622
- s = this.longLeadConfig.leadIdxs[d], this.waveConfigs[s] && (t = this.waveConfigs[s].addPosX || t, o = W(this.waveConfigs[s].speed, this.gridConfig.cellMg, this.waveConfigs[s].sampleRate), n = S(this.waveConfigs[s].gain, this.gridConfig.cellMg), i = this.waveConfigs[s].addPosY || (d + this.leadModel.line + 1) * this.splitBlockHeight, a = this.waveLists[s] || [], d === 0 && (this.loopArrowY.add = i), e.push({
623
+ for (let r = 0; r < this.leadModel.add; r++)
624
+ s = this.longLeadConfig.leadIdxs[r], this.waveConfigs[s] && (t = this.waveConfigs[s].addPosX || t, o = W(this.waveConfigs[s].speed, this.gridConfig.cellMg, this.waveConfigs[s].sampleRate), n = S(this.waveConfigs[s].gain, this.gridConfig.cellMg), i = this.waveConfigs[s].addPosY || (r + this.leadModel.line + 1) * this.splitBlockHeight, a = this.waveLists[s] || [], r === 0 && (this.loopArrowY.add = i), e.push({
623
625
  pos: [t, i],
624
626
  startInd: this.addSlidingWindowInfo.startInd || 0,
625
627
  endInd: this.addSlidingWindowInfo.endInd || 0,
626
- data: a.slice(this.addSlidingWindowInfo.startInd, this.addSlidingWindowInfo.endInd).map((l, f) => this.waveConfigs[s].leadName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[s].leadName) ? M(this.waveConfigs[s].sensitivity, l, n / 2) : M(this.waveConfigs[s].sensitivity, l, n)).map((l, f) => [f * (o || 0), -l]),
628
+ data: a.slice(this.addSlidingWindowInfo.startInd, this.addSlidingWindowInfo.endInd).map((f, l) => this.waveConfigs[s].leadName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[s].leadName) ? M(this.waveConfigs[s].sensitivity, f, n / 2) : M(this.waveConfigs[s].sensitivity, f, n)).map((f, l) => [l * (o || 0), -f]),
627
629
  sens: n,
628
630
  step: o
629
631
  }));
@@ -656,21 +658,21 @@ let g = class extends E {
656
658
  this.addWaveDataCopy = e, e = null;
657
659
  }
658
660
  getRednerPoints() {
659
- let e = 0, t = 0, i = 0, s = [], a = 0, o = 0, n = this.slidingWindowInfo.startInd || 0, d = this.slidingWindowInfo.endInd || 0;
660
- const l = [];
661
- for (let f = 0; f < this.leadModel.column; f++) {
662
- e = f * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0, this.leadModel.isContinuous && f > 0 && (n = d, d = n + (this.slidingWindowInfo.points || 0));
663
- for (let r = 1; r <= this.leadModel.line && (t = r * this.splitBlockHeight, !(i > (this.waveLists || []).length - 1)); r++)
664
- e = this.waveConfigs[i].posX || e, t = this.waveConfigs[i].posY || t, a = W(this.waveConfigs[i].speed, this.gridConfig.cellMg, this.waveConfigs[i].sampleRate), o = S(this.waveConfigs[i].gain, this.gridConfig.cellMg), s = this.waveLists[i] || [], this.waveConfigs[i] && (r === 1 && (this.loopArrowY.rowAndCol = t), l.push({
661
+ let e = 0, t = 0, i = 0, s = [], a = 0, o = 0, n = this.slidingWindowInfo.startInd || 0, r = this.slidingWindowInfo.endInd || 0;
662
+ const f = [];
663
+ for (let l = 0; l < this.leadModel.column; l++) {
664
+ e = l * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0, this.leadModel.isContinuous && l > 0 && (n = r, r = n + (this.slidingWindowInfo.points || 0));
665
+ for (let d = 1; d <= this.leadModel.line && (t = d * this.splitBlockHeight, !(i > (this.waveLists || []).length - 1)); d++)
666
+ e = this.waveConfigs[i].posX || e, t = this.waveConfigs[i].posY || t, a = W(this.waveConfigs[i].speed, this.gridConfig.cellMg, this.waveConfigs[i].sampleRate), o = S(this.waveConfigs[i].gain, this.gridConfig.cellMg), s = this.waveLists[i] || [], this.waveConfigs[i] && (d === 1 && (this.loopArrowY.rowAndCol = t), f.push({
665
667
  pos: [e, t],
666
668
  startInd: n,
667
- endInd: d,
669
+ endInd: r,
668
670
  sens: o,
669
671
  step: a,
670
- data: s.slice(n, d).map((h, C) => this.waveConfigs[i].leadName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[i].leadName) ? M(this.waveConfigs[i].sensitivity, h, o / 2) : M(this.waveConfigs[i].sensitivity, h, o)).map((h, C) => [C * (a || 0), -h])
672
+ data: s.slice(n, r).map((h, C) => this.waveConfigs[i].leadName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[i].leadName) ? M(this.waveConfigs[i].sensitivity, h, o / 2) : M(this.waveConfigs[i].sensitivity, h, o)).map((h, C) => [C * (a || 0), -h])
671
673
  }), i++);
672
674
  }
673
- return l;
675
+ return f;
674
676
  }
675
677
  createRowAndColWaveFrom() {
676
678
  var s, a;
@@ -681,12 +683,12 @@ let g = class extends E {
681
683
  cursor: "",
682
684
  name: o + "_" + o,
683
685
  shape: {
684
- points: e[o].data.map(([n, d], l) => isNaN(d) ? (i === 0 && (i = l - 1, i = i < 0 ? 0 : i), [
686
+ points: e[o].data.map(([n, r], f) => isNaN(r) ? (i === 0 && (i = f - 1, i = i < 0 ? 0 : i), [
685
687
  e[o].data[i][0] + e[o].pos[0],
686
688
  e[o].data[i][1] + e[o].pos[1]
687
689
  ]) : (i = 0, [
688
690
  n + e[o].pos[0],
689
- d + e[o].pos[1]
691
+ r + e[o].pos[1]
690
692
  ]))
691
693
  },
692
694
  style: {
@@ -751,12 +753,12 @@ let g = class extends E {
751
753
  const a = e.target.name.split("_");
752
754
  this.activeLeadIdx = +a[0];
753
755
  const o = +a[1];
754
- let n = 0, d = 0, l = 0, f = 0, r = 0;
755
- t === "single" ? (n = e.offsetX - this.singleWaveDataCopy[o].pos[0], d = this.singleWaveDataCopy[o].startInd, l = L(n, this.singleWaveDataCopy[o].step || 1), f = this.singleWaveDataCopy[o].sens, r = this.singleWaveDataCopy[o].step) : t === "rowAndCol" ? (n = e.offsetX - this.waveDataCopy[o].pos[0], d = this.waveDataCopy[o].startInd || 0, l = L(n, this.waveDataCopy[o].step || 1), f = this.waveDataCopy[o].sens, r = this.waveDataCopy[o].step) : t === "add" && (n = e.offsetX - this.addWaveDataCopy[o].pos[0], d = this.addWaveDataCopy[o].startInd || 0, l = L(n, this.addWaveDataCopy[o].step || 1), f = this.addWaveDataCopy[o].sens, r = this.addWaveDataCopy[o].step), l += d, this.$emit("notifyActiveEnlargr", {
756
- sens: f,
757
- step: r,
756
+ let n = 0, r = 0, f = 0, l = 0, d = 0;
757
+ t === "single" ? (n = e.offsetX - this.singleWaveDataCopy[o].pos[0], r = this.singleWaveDataCopy[o].startInd, f = L(n, this.singleWaveDataCopy[o].step || 1), l = this.singleWaveDataCopy[o].sens, d = this.singleWaveDataCopy[o].step) : t === "rowAndCol" ? (n = e.offsetX - this.waveDataCopy[o].pos[0], r = this.waveDataCopy[o].startInd || 0, f = L(n, this.waveDataCopy[o].step || 1), l = this.waveDataCopy[o].sens, d = this.waveDataCopy[o].step) : t === "add" && (n = e.offsetX - this.addWaveDataCopy[o].pos[0], r = this.addWaveDataCopy[o].startInd || 0, f = L(n, this.addWaveDataCopy[o].step || 1), l = this.addWaveDataCopy[o].sens, d = this.addWaveDataCopy[o].step), f += r, this.$emit("notifyActiveEnlargr", {
758
+ sens: l,
759
+ step: d,
758
760
  activeLeadIdx: this.activeLeadIdx,
759
- pointIdx: l
761
+ pointIdx: f
760
762
  });
761
763
  };
762
764
  i - this.dbClickWaveFromTime < 400 ? (this.dbClickWaveFromTime = 0, s()) : this.dbClickWaveFromTime = i;
@@ -781,18 +783,18 @@ let g = class extends E {
781
783
  this.waveDataCopy = t, this.addWaveDataCopy = i, (s = this.rowAndColwaveFromGroup) == null || s.eachChild((o, n) => {
782
784
  n = n || 0, !(!t[n] || !t[n].data) && o.attr({
783
785
  shape: {
784
- points: t[n].data.map(([d, l]) => [
785
- d + t[n].pos[0],
786
- l + t[n].pos[1]
786
+ points: t[n].data.map(([r, f]) => [
787
+ r + t[n].pos[0],
788
+ f + t[n].pos[1]
787
789
  ])
788
790
  }
789
791
  });
790
792
  }), (a = this.addwaveFromGroup) == null || a.eachChild((o, n) => {
791
793
  n = n || 0, !(!i[n] || !i[n].data) && o.attr({
792
794
  shape: {
793
- points: i[n].data.map(([d, l]) => [
794
- d + i[n].pos[0],
795
- l + i[n].pos[1]
795
+ points: i[n].data.map(([r, f]) => [
796
+ r + i[n].pos[0],
797
+ f + i[n].pos[1]
796
798
  ])
797
799
  }
798
800
  });