costy-plus 1.0.85-0 → 1.0.87-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.
@@ -102,6 +102,7 @@ export interface LongLeadConfig {
102
102
  export interface BottomRulerConfig {
103
103
  isShow: boolean;
104
104
  gainName: string;
105
+ renderText?: string;
105
106
  /** 采样率 */
106
107
  sampleRate: number;
107
108
  /** 增益 */
@@ -15,7 +15,7 @@ import q from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/nod
15
15
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
16
16
  import { Prop as c } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Prop.js";
17
17
  import { flattenDeep as Q, max as K, min as U } from "lodash";
18
- import { throttling as $, getStepForSpeed as W, getPrintLengthToPx as Z, getSens as S, getDataLenTimes as A, getPointIdxForPx as L, getActualY as M } from "@costy-plus/utils";
18
+ import { throttling as $, getStepForSpeed as S, getPrintLengthToPx as Z, getSens as W, getDataLenTimes as A, getPointIdxForPx as L, getActualY as H } from "@costy-plus/utils";
19
19
  import * as J from "zrender";
20
20
  import { Group as v, Polyline as x, Line as P, Text as I, Polygon as ee, util as te } from "zrender";
21
21
  var ie = Object.defineProperty, se = Object.getOwnPropertyDescriptor, u = (e, t, i, s) => {
@@ -109,7 +109,7 @@ let g = class extends E {
109
109
  startInd: this.slidingWindowInfo.startInd || 0,
110
110
  endInd: this.slidingWindowInfo.endInd <= t || this.leadModel.isSingleMode ? t : this.slidingWindowInfo.endInd
111
111
  }, this.scrollConfig.isShow && !this.leadModel.isSingleMode) {
112
- const s = W(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), a = this.dataTotalLength * s;
112
+ const s = S(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), a = this.dataTotalLength * s;
113
113
  this.vuescrollWH.width = this.canvasContainer.width + (a || 0) - this.splitPoint;
114
114
  }
115
115
  const i = Math.ceil((this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / e);
@@ -160,7 +160,7 @@ let g = class extends E {
160
160
  const i = Z(((t = this.waveConfigs[0]) == null ? void 0 : t.sampleRate) || 0) + this.leadHeadConfig.leadHedeWidth;
161
161
  i <= e && (e = i);
162
162
  } else if (this.leadModel.isContinuous) {
163
- const i = W(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), s = this.dataTotalLength * i;
163
+ const i = S(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), s = this.dataTotalLength * i;
164
164
  !this.leadModel.isSingleMode && (s || 0) < e - this.leadHeadConfig.leadHedeWidth && (e = (s || 0) + this.leadHeadConfig.leadHedeWidth);
165
165
  }
166
166
  this.drawArea = {
@@ -180,7 +180,7 @@ let g = class extends E {
180
180
  }, this.currentHeardBeat = {
181
181
  heardBeat: null,
182
182
  ele: null
183
- }, this.leadNameList = this.leadNames.map((i, s) => s) || [], this.totalRows = this.leadModel.line + this.leadModel.add || 1, this.highestAndLowestPoint = this.calcHighestAndLowestPoint(), this.leadModel.isSingleMode ? (this.splitBlockHeight = Math.abs(this.highestAndLowestPoint.maxPoints) + Math.abs(this.highestAndLowestPoint.minPoints) + 22, this.splitBlockHeight > this.drawArea.height && (this.splitBlockHeight = this.drawArea.height / 6)) : this.splitBlockHeight = this.drawArea.height / this.totalRows, this.publicStep = W(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), this.rulerStep = (this.publicStep || 1) * (this.leadModel.publicSampleRate || 1) / (this.gridConfig.cellMg * 2 + 2);
183
+ }, this.leadNameList = this.leadNames.map((i, s) => s) || [], this.totalRows = this.leadModel.line + this.leadModel.add || 1, this.highestAndLowestPoint = this.calcHighestAndLowestPoint(), this.leadModel.isSingleMode ? (this.splitBlockHeight = Math.abs(this.highestAndLowestPoint.maxPoints) + Math.abs(this.highestAndLowestPoint.minPoints) + 22, this.splitBlockHeight > this.drawArea.height && (this.splitBlockHeight = this.drawArea.height / 6)) : this.splitBlockHeight = this.drawArea.height / this.totalRows, this.publicStep = S(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), this.rulerStep = (this.publicStep || 1) * (this.leadModel.publicSampleRate || 1) / (this.gridConfig.cellMg * 2 + 2);
184
184
  }
185
185
  initWaveFormPeer() {
186
186
  var i;
@@ -223,26 +223,26 @@ let g = class extends 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, (r = this.leadHeadGroup) == null || r.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, this.leadHeadConfig.isShowLeadCalibration !== !1 && ((r = this.leadHeadGroup) == null || r.add(
227
227
  this.createLeadHead(
228
228
  i,
229
229
  this.waveConfigs[h - 1 + s].posY || h * this.splitBlockHeight,
230
- S(this.waveConfigs[h - 1 + s].gain, this.gridConfig.cellMg),
230
+ W(this.waveConfigs[h - 1 + s].gain, this.gridConfig.cellMg),
231
231
  t
232
232
  )
233
- ));
233
+ )));
234
234
  }
235
235
  }
236
236
  let a = null;
237
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(
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, this.leadHeadConfig.isShowLeadCalibration !== !1 && ((f = this.leadHeadGroup) == null || f.add(
239
239
  this.createLeadHead(
240
240
  i,
241
241
  a.posY || (d + 1 + this.leadModel.line) * this.splitBlockHeight,
242
- S(a.gain, this.gridConfig.cellMg),
242
+ W(a.gain, this.gridConfig.cellMg),
243
243
  t
244
244
  )
245
- ));
245
+ )));
246
246
  a = null, (l = this.sceneIns) == null || l.add(this.leadHeadGroup);
247
247
  }
248
248
  createLeadHead(e, t, i, s) {
@@ -288,7 +288,7 @@ let g = class extends E {
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 d = W(
291
+ const d = S(
292
292
  this.waveConfigs[this.singleModeConfig.defaultSelect].speed,
293
293
  this.gridConfig.cellMg,
294
294
  this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate
@@ -309,7 +309,7 @@ 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]) ? (r = this.splitLineGroup) == null || r.add(
312
+ a = W((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,
@@ -359,7 +359,7 @@ let g = class extends E {
359
359
  }, e)
360
360
  }), i = new I({
361
361
  style: y({
362
- text: `${this.rulerConfig.gainName} ${this.rulerConfig.speedName}`,
362
+ text: this.rulerConfig.renderText || `${this.rulerConfig.gainName} ${this.rulerConfig.speedName}`,
363
363
  x: this.leadHeadConfig.leadHedeWidth / 2 + 20,
364
364
  y: this.canvasContainer.height - this.ruleH
365
365
  }, e)
@@ -372,7 +372,7 @@ let g = class extends E {
372
372
  return;
373
373
  const t = this.dataTotalTimes / 1e3;
374
374
  let i = this.leadHeadConfig.leadHedeWidth, s = 0, a = t;
375
- const o = W(this.rulerConfig.speed, this.gridConfig.cellMg, this.rulerConfig.sampleRate);
375
+ const o = S(this.rulerConfig.speed, this.gridConfig.cellMg, this.rulerConfig.sampleRate);
376
376
  if (this.leadModel.isContinuous)
377
377
  a = t * 5;
378
378
  else if (!this.leadModel.add && o) {
@@ -413,11 +413,11 @@ let g = class extends E {
413
413
  let e = 0, t = 0;
414
414
  const i = this.waveLists[this.singleModeConfig.defaultSelect] || [];
415
415
  let s = this.slidingWindowInfo.startInd || 0, a = this.slidingWindowInfo.endInd || 0;
416
- const o = W(
416
+ const o = S(
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), r = [], f = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
420
+ ), n = W(this.waveConfigs[this.singleModeConfig.defaultSelect].gain, this.gridConfig.cellMg), r = [], f = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
421
421
  for (let l = 0; l < 1; l++) {
422
422
  e = l * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0;
423
423
  for (let d = 1; d <= f; d++)
@@ -427,7 +427,7 @@ let g = class extends E {
427
427
  endInd: a,
428
428
  step: o,
429
429
  sens: n,
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])
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) ? H(this.waveConfigs[this.singleModeConfig.defaultSelect].sensitivity, h, n / 2) : H(this.waveConfigs[this.singleModeConfig.defaultSelect].sensitivity, h, n)).map((h, C) => [C * (o || 0), -h])
431
431
  });
432
432
  }
433
433
  return r;
@@ -483,8 +483,8 @@ let g = class extends E {
483
483
  this.heartFight.mode && this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = this.heartBeatPosition[this.heartFight.showIdxPai][this.heartFight.defaultSelect] || null, this.drawHeardBeatLine());
484
484
  let t = 0, i = 0;
485
485
  if (this.leadModel.add) {
486
- const H = S(this.waveConfigs[this.longLeadConfig.leadIdxs[0]].gain, this.gridConfig.cellMg);
487
- i = this.loopArrowY.add - (H || 0) - this.splitBlockHeight / 3.5;
486
+ const M = W(this.waveConfigs[this.longLeadConfig.leadIdxs[0]].gain, this.gridConfig.cellMg);
487
+ i = this.loopArrowY.add - (M || 0) - this.splitBlockHeight / 3.5;
488
488
  } else
489
489
  i = 20;
490
490
  let s = 0, a = 0;
@@ -492,14 +492,14 @@ let g = class extends E {
492
492
  fontSize: 12,
493
493
  fill: "red",
494
494
  fontFamily: this.fontFamily
495
- }, n = W(
495
+ }, n = S(
496
496
  this.waveConfigs[this.heartFight.showIdxPai].speed,
497
497
  this.gridConfig.cellMg,
498
498
  this.waveConfigs[this.heartFight.showIdxPai].sampleRate
499
499
  );
500
500
  let r = 0;
501
- for (let H = 0; H < (this.heartBeatPosition[this.heartFight.showIdxPai] || []).length; H++) {
502
- const p = this.heartBeatPosition[this.heartFight.showIdxPai][H];
501
+ for (let M = 0; M < (this.heartBeatPosition[this.heartFight.showIdxPai] || []).length; M++) {
502
+ const p = this.heartBeatPosition[this.heartFight.showIdxPai][M];
503
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))) {
504
504
  if (((p == null ? void 0 : p.position) || 0) - this.addSlidingWindowInfo.startInd > (this.addSlidingWindowInfo.points || 0))
505
505
  break;
@@ -621,11 +621,11 @@ let g = class extends E {
621
621
  const e = [];
622
622
  let t = this.leadHeadConfig.leadHedeWidth, i = 0, s = 0, a = [], o = 0, n = 0;
623
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({
624
+ s = this.longLeadConfig.leadIdxs[r], this.waveConfigs[s] && (t = this.waveConfigs[s].addPosX || t, o = S(this.waveConfigs[s].speed, this.gridConfig.cellMg, this.waveConfigs[s].sampleRate), n = W(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({
625
625
  pos: [t, i],
626
626
  startInd: this.addSlidingWindowInfo.startInd || 0,
627
627
  endInd: this.addSlidingWindowInfo.endInd || 0,
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]),
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) ? H(this.waveConfigs[s].sensitivity, f, n / 2) : H(this.waveConfigs[s].sensitivity, f, n)).map((f, l) => [l * (o || 0), -f]),
629
629
  sens: n,
630
630
  step: o
631
631
  }));
@@ -663,13 +663,13 @@ let g = class extends E {
663
663
  for (let l = 0; l < this.leadModel.column; l++) {
664
664
  e = l * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0, this.leadModel.isContinuous && l > 0 && (n = r, r = n + (this.slidingWindowInfo.points || 0));
665
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({
666
+ e = this.waveConfigs[i].posX || e, t = this.waveConfigs[i].posY || t, a = S(this.waveConfigs[i].speed, this.gridConfig.cellMg, this.waveConfigs[i].sampleRate), o = W(this.waveConfigs[i].gain, this.gridConfig.cellMg), s = this.waveLists[i] || [], this.waveConfigs[i] && (d === 1 && (this.loopArrowY.rowAndCol = t), f.push({
667
667
  pos: [e, t],
668
668
  startInd: n,
669
669
  endInd: r,
670
670
  sens: o,
671
671
  step: a,
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])
672
+ data: s.slice(n, r).map((h, C) => this.waveConfigs[i].leadName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[i].leadName) ? H(this.waveConfigs[i].sensitivity, h, o / 2) : H(this.waveConfigs[i].sensitivity, h, o)).map((h, C) => [C * (a || 0), -h])
673
673
  }), i++);
674
674
  }
675
675
  return f;
@@ -702,28 +702,29 @@ let g = class extends E {
702
702
  this.waveDataCopy = e, e = null;
703
703
  }
704
704
  createLeadName(e, t, i, s = !1) {
705
- var a;
706
- (a = this.leadHeadNameGroup) == null || a.add(new I({
705
+ var o;
706
+ let a = t;
707
+ this.leadHeadConfig.isShowLeadCalibration === !1 && (a = t - this.leadHeadConfig.leadHedeWidth + 5), (o = this.leadHeadNameGroup) == null || o.add(new I({
707
708
  style: {
708
- x: t,
709
+ x: a,
709
710
  y: i,
710
711
  text: this.leadNames[e],
711
712
  fontSize: this.leadConfig.fontSize,
712
713
  fill: this.leadConfig.lineColor,
713
714
  fontFamily: this.leadConfig.fontFamily
714
715
  },
715
- oncontextmenu: (o) => {
716
- o.event.preventDefault(), this.$emit("notiifyLeadName", {
717
- event: D(y({}, o), {
716
+ oncontextmenu: (n) => {
717
+ n.event.preventDefault(), this.$emit("notiifyLeadName", {
718
+ event: D(y({}, n), {
718
719
  name: this.leadNames[e],
719
720
  idx: e
720
721
  }),
721
722
  isAdd: s
722
723
  });
723
724
  },
724
- onclick: (o) => {
725
+ onclick: (n) => {
725
726
  this.$emit("notiifyLeadName", {
726
- event: D(y({}, o), {
727
+ event: D(y({}, n), {
727
728
  name: this.leadNames[e],
728
729
  idx: e
729
730
  }),
@@ -1,5 +1,5 @@
1
1
  var C = function() {
2
- var t, i, l, o, r, s, n, g, d, v, c, h, m, f, a = this, u = a.$createElement, e = a._self._c || u;
2
+ var t, i, l, o, r, s, n, d, g, v, c, h, f, m, a = this, u = a.$createElement, e = a._self._c || u;
3
3
  return e("div", {
4
4
  style: {
5
5
  width: `${a.width}px`,
@@ -14,7 +14,7 @@ var C = function() {
14
14
  height: a.canvasContainer.height,
15
15
  "grid-config": a.gridConfig,
16
16
  magnification: a.sceneMagnification,
17
- "layer-id": "MXGrid"
17
+ "layer-id": a.prefixId + "MXGrid"
18
18
  }
19
19
  }), a.measurRulerConfig.isShow ? e("MeasuringRuler", a._g({
20
20
  staticClass: "measuring-ruler",
@@ -24,7 +24,8 @@ var C = function() {
24
24
  height: a.canvasContainer.height,
25
25
  "cell-mg": a.gridConfig.cellMg,
26
26
  "speed-value": ((t = a.formatEcgData) === null || t === void 0 ? void 0 : t.speed) || 0,
27
- sens: a.formatEcgData.sens
27
+ sens: a.formatEcgData.sens,
28
+ "prefix-id": a.prefixId
28
29
  }
29
30
  }, a.$listeners)) : a._e(), a.paralleRulerConfig.isShow ? e("MXParallelRuler", a._g({
30
31
  staticClass: "parallel-ruler",
@@ -34,7 +35,8 @@ var C = function() {
34
35
  "cell-mg": a.gridConfig.cellMg,
35
36
  "speed-value": ((i = a.formatEcgData) === null || i === void 0 ? void 0 : i.speed) || 0,
36
37
  sens: a.formatEcgData.sens,
37
- "heart-rate": a.ventricularRate
38
+ "heart-rate": a.ventricularRate,
39
+ "prefix-id": a.prefixId
38
40
  }
39
41
  }, a.$listeners)) : a._e(), a.magnifierRulerConfig.isShow ? e("MXMagnifierWave", {
40
42
  staticClass: "magnifier-wave",
@@ -54,7 +56,8 @@ var C = function() {
54
56
  "split-point": a.splitPoint,
55
57
  "lead-config": a.leadConfig,
56
58
  "heart-fight": a.heartFight,
57
- "normal-lead-names": ((r = a.formatEcgData) === null || r === void 0 ? void 0 : r.processedData.otherParams.LeadName) || []
59
+ "normal-lead-names": ((r = a.formatEcgData) === null || r === void 0 ? void 0 : r.processedData.otherParams.LeadName) || [],
60
+ "prefix-id": a.prefixId
58
61
  }
59
62
  }) : a._e(), a.isShowEnlargeWave ? e("MXEnlargeWave", a._g({
60
63
  staticClass: "enlarge-wave",
@@ -66,8 +69,8 @@ var C = function() {
66
69
  "speed-value": ((s = a.formatEcgData) === null || s === void 0 ? void 0 : s.speed) || 0,
67
70
  sens: a.formatEcgData.sens,
68
71
  step: ((n = a.formatEcgData) === null || n === void 0 ? void 0 : n.step) || 0,
69
- "sample-rate": ((g = a.formatEcgData) === null || g === void 0 ? void 0 : g.processedData.otherParams.SampleRate) || 0,
70
- sensitivity: ((d = a.formatEcgData) === null || d === void 0 ? void 0 : d.processedData.otherParams.Sensitivity) || 0,
72
+ "sample-rate": ((d = a.formatEcgData) === null || d === void 0 ? void 0 : d.processedData.otherParams.SampleRate) || 0,
73
+ sensitivity: ((g = a.formatEcgData) === null || g === void 0 ? void 0 : g.processedData.otherParams.Sensitivity) || 0,
71
74
  "normal-data": ((v = a.formatEcgData) === null || v === void 0 ? void 0 : v.processedData.originData.Data) || [],
72
75
  "complex-data": ((c = a.formatEcgData) === null || c === void 0 ? void 0 : c.processedData.originData.ComplexData) || [],
73
76
  "lead-name-list": a.leadNameList,
@@ -76,11 +79,12 @@ var C = function() {
76
79
  "active-lead-analyse-value": a.activeLeadAnalyseValue,
77
80
  "analyse-value": ((h = a.formatEcgData) === null || h === void 0 ? void 0 : h.processedData.otherParams.AnalyseValue) || [],
78
81
  "enlarge-wave-mode": a.enlargeWaveMode,
79
- "q-td-algorithm": ((m = a.conventionalECGConfig) === null || m === void 0 || (f = m.ecgReviewSetting) === null || f === void 0 ? void 0 : f.QTd_algorithm) || 1,
82
+ "q-td-algorithm": ((f = a.conventionalECGConfig) === null || f === void 0 || (m = f.ecgReviewSetting) === null || m === void 0 ? void 0 : m.QTd_algorithm) || 1,
80
83
  "is-sync-analyse-value-check": a.isSyncAnalyseValueCheck,
81
84
  "enlarge-gains": a.enlargeGains,
82
85
  "lead-name-texts-porps": a.LeadNameTextsPorps,
83
- "enlarge-speeds": a.enlargeSpeeds
86
+ "enlarge-speeds": a.enlargeSpeeds,
87
+ "prefix-id": a.prefixId
84
88
  },
85
89
  on: {
86
90
  "update:isShowEnlargeWave": function(p) {
@@ -91,8 +95,9 @@ var C = function() {
91
95
  }
92
96
  }
93
97
  }, a.$listeners)) : a._e(), e("div", {
98
+ staticClass: "wave-from-box_container",
94
99
  attrs: {
95
- id: "wave-from-box"
100
+ id: a.prefixId + "wave-from-box"
96
101
  }
97
102
  }), e("div", {
98
103
  staticClass: "scroll-box",
@@ -101,7 +106,7 @@ var C = function() {
101
106
  height: `${a.height}px`
102
107
  }
103
108
  }, [a.scrollConfig.isNativeScroll ? e("div", {
104
- ref: "nativeScroll",
109
+ ref: a.prefixId + "nativeScroll",
105
110
  staticClass: "native-scroll",
106
111
  on: {
107
112
  scroll: a.nativeScrollFunc
@@ -113,7 +118,7 @@ var C = function() {
113
118
  height: `${a.vuescrollWH.height}px`
114
119
  }
115
120
  })]) : e("vueScroll", {
116
- ref: "vueScroll",
121
+ ref: a.prefixId + "vueScroll",
117
122
  attrs: {
118
123
  ops: a.scrollConfig
119
124
  },
@@ -127,8 +132,8 @@ var C = function() {
127
132
  height: `${a.vuescrollWH.height}px`
128
133
  }
129
134
  })])], 1)], 1);
130
- }, D = [];
135
+ }, w = [];
131
136
  export {
132
137
  C as render,
133
- D as staticRenderFns
138
+ w as staticRenderFns
134
139
  };
@@ -7,6 +7,10 @@ import { MXGridConfig } from '../../types/BackgroundGrid';
7
7
  import { HandleScrollParams } from '../../types/Common';
8
8
  import { MXMeasuringRulerConfig } from '../../types/MeasuringRuler';
9
9
  export default class Methods extends Vue {
10
+ /** 前缀 id */
11
+ protected supportTwoFingerZoom: boolean;
12
+ /** 前缀 id */
13
+ protected prefixId: string;
10
14
  protected width: number;
11
15
  protected height: number;
12
16
  protected MXEnlargeWaveWidth: number;
@@ -2,7 +2,7 @@ var Y = Object.defineProperty, V = Object.defineProperties;
2
2
  var _ = Object.getOwnPropertyDescriptors;
3
3
  var j = Object.getOwnPropertySymbols;
4
4
  var q = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
- var T = (e, t, i) => t in e ? Y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, I = (e, t) => {
5
+ var T = (e, t, i) => t in e ? Y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, y = (e, t) => {
6
6
  for (var i in t || (t = {}))
7
7
  q.call(t, i) && T(e, i, t[i]);
8
8
  if (j)
@@ -11,12 +11,12 @@ var T = (e, t, i) => t in e ? Y(e, t, { enumerable: !0, configurable: !0, writab
11
11
  return e;
12
12
  }, S = (e, t) => V(e, _(t));
13
13
  import U from "vue";
14
- import Q 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";
14
+ import Z 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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
16
16
  import { Prop as w } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Prop.js";
17
- import { AnalysisMode as M, throttling as O, getPrintLengthToPx as Z, getDataLenTimes as L, getDistance as $, getPointIdxForPx as x, LeadNameTexts as J } from "@costy-plus/utils";
17
+ import { AnalysisMode as M, throttling as O, getPrintLengthToPx as Q, getDataLenTimes as F, getDistance as $, getPointIdxForPx as x, LeadNameTexts as J } from "@costy-plus/utils";
18
18
  import * as ee from "zrender";
19
- import { Group as C, Text as W, Polyline as F, Line as b, Polygon as te, util as ie } from "zrender";
19
+ import { Group as C, Text as W, Polyline as L, Line as b, Polygon as te, util as ie } from "zrender";
20
20
  var ae = Object.defineProperty, se = Object.getOwnPropertyDescriptor, u = (e, t, i, a) => {
21
21
  for (var s = a > 1 ? void 0 : a ? se(t, i) : t, o = e.length - 1, r; o >= 0; o--)
22
22
  (r = e[o]) && (s = (a ? r(t, i, s) : r(s)) || s);
@@ -76,10 +76,10 @@ let g = class extends U {
76
76
  var e;
77
77
  this.initWaveFormPeer(), this.combinationDrawing(), (e = this.formatEcgData) != null && e.processedData.otherParams.PosStart && (this.scrollConfig.isShow ? this.$nextTick(() => {
78
78
  var t, i, a, s, o;
79
- this.scrollConfig.isNativeScroll ? (a = this.$refs.nativeScroll) == null || a.scrollBy({
79
+ this.scrollConfig.isNativeScroll ? (a = this.$refs[this.prefixId + "nativeScroll"]) == null || a.scrollBy({
80
80
  left: (((t = this.formatEcgData) == null ? void 0 : t.processedData.otherParams.PosStart) || 0) * (((i = this.formatEcgData) == null ? void 0 : i.step) || 0),
81
81
  top: 0
82
- }) : this.$refs.vueScroll.scrollTo({
82
+ }) : this.$refs[this.prefixId + "vueScroll"].scrollTo({
83
83
  dx: (((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.PosStart) || 0) * (((o = this.formatEcgData) == null ? void 0 : o.step) || 0)
84
84
  });
85
85
  }) : (this.scrollWaveFrom(this.formatEcgData.processedData.otherParams.PosStart), this.scrollRuler(this.formatEcgData.processedData.otherParams.PosStart), this.scrollArrow(this.formatEcgData.processedData.otherParams.PosStart)));
@@ -87,13 +87,13 @@ let g = class extends U {
87
87
  initWaveFormPeer() {
88
88
  var i;
89
89
  (i = this.sceneIns) == null || i.dispose(), this.AssistCtx = null;
90
- const e = document.getElementById("wave-from-box");
90
+ const e = document.getElementById(`${this.prefixId}wave-from-box`);
91
91
  this.sceneIns = ee.init(e, {
92
92
  width: this.canvasContainer.width,
93
93
  height: this.canvasContainer.height,
94
94
  devicePixelRatio: 2
95
95
  });
96
- const t = document.getElementById("MXGrid");
96
+ const t = document.getElementById(`${this.prefixId}MXGrid`);
97
97
  this.AssistCtx = t.getContext("2d"), this.sceneInsEventOff(), this.sceneIns.on("mousemove", this.sceneInsMousemove), this.sceneIns.on("mousedown", this.sceneInsMouseDown), this.sceneIns.on("mouseup", this.sceneInsMouseUp);
98
98
  }
99
99
  sceneInsEventOff() {
@@ -130,7 +130,7 @@ let g = class extends U {
130
130
  }), this.vuescrollWH.width = this.width, this.originCanvasWidth = this.width, this.vuescrollWH.height = this.height;
131
131
  let e = this.canvasContainer.width;
132
132
  if (((i = (t = this.conventionalECGConfig) == null ? void 0 : t.ecgReviewSetting) == null ? void 0 : i.ecgareawidth) === "1") {
133
- const m = Z(((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.SampleRate) || 0) + this.leadHeadConfig.leadHedeWidth;
133
+ const m = Q(((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.SampleRate) || 0) + this.leadHeadConfig.leadHedeWidth;
134
134
  m <= e && (e = m);
135
135
  } else
136
136
  this.leadModel.isContinuous && !this.isSingleMode && (((s = this.formatEcgData) == null ? void 0 : s.dataPxLen) || 0) < e - this.leadHeadConfig.leadHedeWidth && (e = (((o = this.formatEcgData) == null ? void 0 : o.dataPxLen) || 0) + this.leadHeadConfig.leadHedeWidth);
@@ -157,7 +157,7 @@ let g = class extends U {
157
157
  let m = this.drawArea.height;
158
158
  this.leadModel.isShowPacing && (m = this.drawArea.height - this.drawBottomPacH), this.splitBlockHeight = m / this.totalRows;
159
159
  }
160
- this.dataTotalTimes = L(
160
+ this.dataTotalTimes = F(
161
161
  this.waveFromData[0].length || 0,
162
162
  ((h = this.formatEcgData) == null ? void 0 : h.processedData.otherParams.SampleRate) || 0
163
163
  ), this.rulerStep = (((d = this.formatEcgData) == null ? void 0 : d.step) || 1) * (((f = this.formatEcgData) == null ? void 0 : f.processedData.otherParams.SampleRate) || 1) / (this.gridConfig.cellMg * 2 + 2);
@@ -194,7 +194,7 @@ let g = class extends U {
194
194
  }
195
195
  } else
196
196
  d = h[0];
197
- !d || (this.activeLeadAnalyseValue = S(I({}, d), {
197
+ !d || (this.activeLeadAnalyseValue = S(y({}, d), {
198
198
  BeatCount: h.length - 1
199
199
  }), d = null, this.$emit("notifyActiveEnlargr"), this.isShowEnlargeWave = !0);
200
200
  };
@@ -204,13 +204,13 @@ let g = class extends U {
204
204
  var t;
205
205
  if (e.event.preventDefault(), e.event.stopPropagation(), this.sceneIsMouseDown) {
206
206
  if (!e.event.touches || e.event.touches.length === 1)
207
- this.scrollConfig.isNativeScroll ? (t = this.$refs.nativeScroll) == null || t.scrollBy({
207
+ this.scrollConfig.isNativeScroll ? (t = this.$refs[this.prefixId + "nativeScroll"]) == null || t.scrollBy({
208
208
  left: e.offsetX - this.sceneIsMouseDownX,
209
209
  top: 0
210
- }) : this.$refs.vueScroll.scrollBy({
210
+ }) : this.$refs[this.prefixId + "vueScroll"].scrollBy({
211
211
  dx: e.offsetX - this.sceneIsMouseDownX
212
212
  });
213
- else if (e.event.touches.length === 2) {
213
+ else if (this.supportTwoFingerZoom && e.event.touches.length === 2) {
214
214
  let a = $({
215
215
  x: e.event.touches[0].pageX,
216
216
  y: e.event.touches[0].pageY
@@ -287,7 +287,7 @@ let g = class extends U {
287
287
  fill: this.leadConfig.lineColor,
288
288
  fontFamily: this.fontFamily
289
289
  }
290
- })), (l = this.pacingGroup) == null || l.add(new F({
290
+ })), (l = this.pacingGroup) == null || l.add(new L({
291
291
  cursor: "",
292
292
  name: "0_0",
293
293
  shape: {
@@ -313,7 +313,7 @@ let g = class extends U {
313
313
  var o;
314
314
  const a = this.leadHeadConfig.leadHedeWidth / 4;
315
315
  let s = ((o = this.formatEcgData) == null ? void 0 : o.sens) || 0;
316
- return s = i ? s / 2 : s, new F({
316
+ return s = i ? s / 2 : s, new L({
317
317
  cursor: "",
318
318
  shape: {
319
319
  points: [
@@ -378,17 +378,17 @@ let g = class extends U {
378
378
  (s = this.splitLineGroup) == null || s.removeAll(), (o = this.sceneIns) == null || o.remove(this.splitLineGroup);
379
379
  const e = (this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / this.leadModel.column;
380
380
  if (this.splitPoint = e, this.isSingleMode) {
381
- const P = L(
381
+ const P = F(
382
382
  Math.ceil(this.splitPoint / (((r = this.formatEcgData) == null ? void 0 : r.step) || 1)) || 0,
383
383
  ((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.SampleRate) || 0
384
- ), y = parseInt(`${P / 1e3 % 60}`, 10);
385
- this.splitPoint = y * (((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0) * (((h = this.formatEcgData) == null ? void 0 : h.step) || 0);
384
+ ), I = parseInt(`${P / 1e3 % 60}`, 10);
385
+ this.splitPoint = I * (((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0) * (((h = this.formatEcgData) == null ? void 0 : h.step) || 0);
386
386
  }
387
387
  let t = 0, i = 0, a = 0;
388
388
  for (let P = 1; P <= this.leadModel.column - 1; P++) {
389
389
  t = P * e + this.leadHeadConfig.leadHedeWidth, i = P * this.leadModel.line;
390
- for (let y = 1; y <= this.leadModel.line && (a = (((d = this.formatEcgData) == null ? void 0 : d.processedData.otherParams.LeadName) || [])[y - 1 + i], a !== void 0); y++)
391
- ((f = this.formatEcgData) == null ? void 0 : f.gainName) === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.LeadNameTextsPorps[a]) ? (p = this.splitLineGroup) == null || p.add(this.creatSplitLine(t, y * this.splitBlockHeight - (((m = this.formatEcgData) == null ? void 0 : m.sens) || 0) / 2 * 0.5, !0)) : (D = this.splitLineGroup) == null || D.add(this.creatSplitLine(t, y * this.splitBlockHeight - (((v = this.formatEcgData) == null ? void 0 : v.sens) || 0) * 0.5));
390
+ for (let I = 1; I <= this.leadModel.line && (a = (((d = this.formatEcgData) == null ? void 0 : d.processedData.otherParams.LeadName) || [])[I - 1 + i], a !== void 0); I++)
391
+ ((f = this.formatEcgData) == null ? void 0 : f.gainName) === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.LeadNameTextsPorps[a]) ? (p = this.splitLineGroup) == null || p.add(this.creatSplitLine(t, I * this.splitBlockHeight - (((m = this.formatEcgData) == null ? void 0 : m.sens) || 0) / 2 * 0.5, !0)) : (D = this.splitLineGroup) == null || D.add(this.creatSplitLine(t, I * this.splitBlockHeight - (((v = this.formatEcgData) == null ? void 0 : v.sens) || 0) * 0.5));
392
392
  }
393
393
  (H = this.sceneIns) == null || H.add(this.splitLineGroup);
394
394
  }
@@ -464,11 +464,11 @@ let g = class extends U {
464
464
  var r, l, n, h, d, f, m;
465
465
  (r = this.singleWaveFromGroup) == null || r.removeAll();
466
466
  const e = (((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.LeadName) || [])[this.singleModeInfo.defaultSelect] || 0;
467
- let t = this.getRednerSinglePoints(), i = L(this.slidingWindowInfo.points || 0, ((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0);
467
+ let t = this.getRednerSinglePoints(), i = F(this.slidingWindowInfo.points || 0, ((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0);
468
468
  const a = i;
469
469
  let s = 0, o = 0;
470
470
  for (let p = 0; p < t.length && !(t[p].pos[1] > this.drawArea.height + this.bottomAreaHeight); p++)
471
- this.isLeadDel(e) || (s = parseInt(`${i / 1e3 / 60}`, 10), o = parseInt(`${i / 1e3 % 60}`, 10), s = o === 60 ? s += 1 : s, s = s === 0 ? "00" : s < 10 ? `0${s}` : s, o = o === 0 || o === 60 ? "00" : o < 10 ? `0${o}` : o, (h = this.singleWaveFromGroup) == null || h.add(new F({
471
+ this.isLeadDel(e) || (s = parseInt(`${i / 1e3 / 60}`, 10), o = parseInt(`${i / 1e3 % 60}`, 10), s = o === 60 ? s += 1 : s, s = s === 0 ? "00" : s < 10 ? `0${s}` : s, o = o === 0 || o === 60 ? "00" : o < 10 ? `0${o}` : o, (h = this.singleWaveFromGroup) == null || h.add(new L({
472
472
  cursor: "",
473
473
  name: this.singleModeInfo.defaultSelect + "_" + p,
474
474
  shape: {
@@ -503,7 +503,7 @@ let g = class extends U {
503
503
  console.time("createAddWaveFrom");
504
504
  let e = this.getAddRednerPoints();
505
505
  for (let a = 0; a < e.length; a++)
506
- this.isLeadDel(this.longLeadConfig.leadIdxs[a]) || ((t = this.addwaveFromGroup) == null || t.add(new F({
506
+ this.isLeadDel(this.longLeadConfig.leadIdxs[a]) || ((t = this.addwaveFromGroup) == null || t.add(new L({
507
507
  cursor: "",
508
508
  name: this.longLeadConfig.leadIdxs[a] + "_" + a,
509
509
  shape: {
@@ -527,7 +527,7 @@ let g = class extends U {
527
527
  console.time("createRowAndColWaveFrom"), (i = this.rowAndColwaveFromGroup) == null || i.removeAll();
528
528
  let e = this.getRednerPoints(), t = 0;
529
529
  for (let n = 0; n < e.length; n++)
530
- t = (((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.LeadName) || [])[n] || 0, this.isLeadDel(t) || (s = this.rowAndColwaveFromGroup) == null || s.add(new F({
530
+ t = (((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.LeadName) || [])[n] || 0, this.isLeadDel(t) || (s = this.rowAndColwaveFromGroup) == null || s.add(new L({
531
531
  cursor: "",
532
532
  name: n + "_" + n,
533
533
  shape: {
@@ -559,7 +559,7 @@ let g = class extends U {
559
559
  },
560
560
  oncontextmenu: (o) => {
561
561
  o.event.preventDefault(), this.$emit("notiifyLeadName", {
562
- event: S(I({}, o), {
562
+ event: S(y({}, o), {
563
563
  name: this.LeadNameTextsPorps[e],
564
564
  idx: e
565
565
  }),
@@ -568,7 +568,7 @@ let g = class extends U {
568
568
  },
569
569
  onclick: (o) => {
570
570
  this.$emit("notiifyLeadName", {
571
- event: S(I({}, o), {
571
+ event: S(y({}, o), {
572
572
  name: this.LeadNameTextsPorps[e],
573
573
  idx: e
574
574
  }),
@@ -602,13 +602,13 @@ let g = class extends U {
602
602
  fontFamily: this.fontFamily
603
603
  }, t = new W({
604
604
  cursor: "",
605
- style: I({
605
+ style: y({
606
606
  text: "(s)",
607
607
  x: this.leadHeadConfig.leadHedeWidth / 2 - 8,
608
608
  y: this.canvasContainer.height - 25
609
609
  }, e)
610
610
  }), i = new W({
611
- style: I({
611
+ style: y({
612
612
  text: `${((a = this.formatEcgData) == null ? void 0 : a.gainName) === "\u80F8\u5BFC\u51CF\u534A" ? (s = this.formatEcgData) == null ? void 0 : s.gainName : `${(o = this.formatEcgData) == null ? void 0 : o.gain}mm/mV`} ${(r = this.formatEcgData) == null ? void 0 : r.speed}mm/s`,
613
613
  x: this.leadHeadConfig.leadHedeWidth / 2 + 20,
614
614
  y: this.canvasContainer.height - this.ruleH
@@ -625,7 +625,7 @@ let g = class extends U {
625
625
  if (this.leadModel.isContinuous)
626
626
  s = t * 5;
627
627
  else if (!this.leadModel.add && ((o = this.formatEcgData) == null ? void 0 : o.step)) {
628
- const d = x(this.splitPoint, this.formatEcgData.step), f = L(d, ((r = this.formatEcgData) == null ? void 0 : r.processedData.otherParams.SampleRate) || 0) / 1e3;
628
+ const d = x(this.splitPoint, this.formatEcgData.step), f = F(d, ((r = this.formatEcgData) == null ? void 0 : r.processedData.otherParams.SampleRate) || 0) / 1e3;
629
629
  s = e + f;
630
630
  }
631
631
  for (let d = e; d <= s; d = +(d + 0.1).toFixed(1))
@@ -663,7 +663,7 @@ let g = class extends U {
663
663
  (e = this.sceneIns) == null || e.add(this.leadHeadNameGroup), (t = this.sceneIns) == null || t.add(this.leadHeadOffAndDelGroup);
664
664
  }
665
665
  drawLoopArrow(e = 0) {
666
- var l, n, h, d, f, m, p, v, D, H, P, y, z, B, N, k, R;
666
+ var l, n, h, d, f, m, p, v, D, H, P, I, z, B, N, k, R;
667
667
  if (this.drawLoopArrowStartPosIdx = e, !this.heartFight.isShow)
668
668
  return;
669
669
  this.heartFight.mode && this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = ((l = this.formatEcgData) == null ? void 0 : l.heartBeatPosition[this.heartFight.defaultSelect]) || null, this.drawHeardBeatLine());
@@ -710,28 +710,28 @@ let g = class extends U {
710
710
  }
711
711
  })), this.heartFight.heartrate && (a = ((D = this.AssistCtx) == null ? void 0 : D.measureText(`${(c == null ? void 0 : c.heartrate) || ""}`).width) || 0, (H = this.arrowGroup) == null || H.add(new W({
712
712
  cursor: "",
713
- style: I({
713
+ style: y({
714
714
  x: 4 + t - a * 1.5,
715
715
  y: s + i,
716
716
  text: `${(c == null ? void 0 : c.heartrate) || ""}`
717
717
  }, o)
718
- })), s += 12), this.heartFight.interval && (a = ((P = this.AssistCtx) == null ? void 0 : P.measureText(`${(c == null ? void 0 : c.interval) || ""}`).width) || 0, (y = this.arrowGroup) == null || y.add(new W({
718
+ })), s += 12), this.heartFight.interval && (a = ((P = this.AssistCtx) == null ? void 0 : P.measureText(`${(c == null ? void 0 : c.interval) || ""}`).width) || 0, (I = this.arrowGroup) == null || I.add(new W({
719
719
  cursor: "",
720
- style: I({
720
+ style: y({
721
721
  x: 4 + t - a * 1.5,
722
722
  y: s + i,
723
723
  text: `${(c == null ? void 0 : c.interval) || ""}`
724
724
  }, o)
725
725
  })), s += 12), this.heartFight.qrstCompany && (a = ((z = this.AssistCtx) == null ? void 0 : z.measureText(`${(c == null ? void 0 : c.qrstCompany) || ""}`).width) || 0, (B = this.arrowGroup) == null || B.add(new W({
726
726
  cursor: "",
727
- style: I({
727
+ style: y({
728
728
  x: 4 + t - a * 1.5,
729
729
  y: s + i,
730
730
  text: `${(c == null ? void 0 : c.qrstCompany) || ""}`
731
731
  }, o)
732
732
  })), s += 12), this.heartFight.telectricalaxis && (a = ((N = this.AssistCtx) == null ? void 0 : N.measureText(`${(c == null ? void 0 : c.telectricalaxis) || ""}`).width) || 0, (k = this.arrowGroup) == null || k.add(new W({
733
733
  cursor: "",
734
- style: I({
734
+ style: y({
735
735
  x: 4 + t - a * 1.5,
736
736
  y: s + i,
737
737
  text: `${(c == null ? void 0 : c.telectricalaxis) || ""}`
@@ -830,7 +830,7 @@ let g = class extends U {
830
830
  scrollRuler(e) {
831
831
  var i, a, s;
832
832
  (i = this.rulerGroup) == null || i.removeAll(), (a = this.sceneIns) == null || a.remove(this.rulerGroup);
833
- const t = L(this.isSingleMode ? 0 : e, ((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.SampleRate) || 0) / 1e3;
833
+ const t = F(this.isSingleMode ? 0 : e, ((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.SampleRate) || 0) / 1e3;
834
834
  this.drawRuler(t);
835
835
  }
836
836
  scrollArrow(e) {
@@ -838,6 +838,16 @@ let g = class extends U {
838
838
  (t = this.arrowGroup) == null || t.removeAll(), (i = this.sceneIns) == null || i.remove(this.arrowGroup), this.drawLoopArrow(e), this.drawHeardBeatLine(e);
839
839
  }
840
840
  };
841
+ u([
842
+ w({
843
+ default: () => !0
844
+ })
845
+ ], g.prototype, "supportTwoFingerZoom", 2);
846
+ u([
847
+ w({
848
+ default: () => ""
849
+ })
850
+ ], g.prototype, "prefixId", 2);
841
851
  u([
842
852
  w({
843
853
  required: !0,
@@ -1021,7 +1031,7 @@ u([
1021
1031
  O(200)
1022
1032
  ], g.prototype, "handleScroll", 1);
1023
1033
  g = u([
1024
- Q({
1034
+ Z({
1025
1035
  name: "Methods"
1026
1036
  })
1027
1037
  ], g);