costy-plus 1.1.12-0 → 1.1.13-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.
@@ -3,7 +3,7 @@ import "vue";
3
3
  import l, { mixins as c } from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
4
4
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
5
5
  import { Watch as r } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
6
- import d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js";
6
+ import d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js";
7
7
  import m from "../MeasuringRuler/index2.js";
8
8
  import f from "../MagnifierWave/index.js";
9
9
  import u from "../ParallelRuler/index2.js";
@@ -3,7 +3,7 @@ import "vue";
3
3
  import c, { mixins as l } from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
4
4
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
5
5
  import { Watch as o } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
6
- import d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js";
6
+ import d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js";
7
7
  import m from "../BackgroundGrid/index2.js";
8
8
  import g from "../MeasuringRuler/index2.js";
9
9
  import f from "../ParallelRuler/index2.js";
@@ -2,7 +2,7 @@ var V = Object.defineProperty, _ = Object.defineProperties;
2
2
  var q = Object.getOwnPropertyDescriptors;
3
3
  var X = Object.getOwnPropertySymbols;
4
4
  var U = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
5
- var T = (e, t, i) => t in e ? V(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, y = (e, t) => {
5
+ var T = (e, t, i) => t in e ? V(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, v = (e, t) => {
6
6
  for (var i in t || (t = {}))
7
7
  U.call(t, i) && T(e, i, t[i]);
8
8
  if (X)
@@ -13,16 +13,16 @@ var T = (e, t, i) => t in e ? V(e, t, { enumerable: !0, configurable: !0, writab
13
13
  import K from "vue";
14
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
- 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 S, throttling as O, getPrintLengthToPx as Q, getDataLenTimes as F, getDistance as $, getPointIdxForPx as x, LeadNameTexts as J } from "@costy-plus/utils";
16
+ import { Prop as m } 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 A, throttling as O, getPrintLengthToPx as Q, getDataLenTimes as P, 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 I, Polyline as A, Line as b, Polygon as te, util as ie } from "zrender";
20
- var se = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, u = (e, t, i, s) => {
19
+ import { Group as C, Text as I, Polyline as G, Line as b, Polygon as te, util as ie } from "zrender";
20
+ var se = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, p = (e, t, i, s) => {
21
21
  for (var a = s > 1 ? void 0 : s ? ae(t, i) : t, o = e.length - 1, r; o >= 0; o--)
22
22
  (r = e[o]) && (a = (s ? r(t, i, a) : r(a)) || a);
23
23
  return s && a && se(t, i, a), a;
24
24
  };
25
- let g = class extends K {
25
+ let f = class extends K {
26
26
  constructor() {
27
27
  super(...arguments), this.AssistCtx = Object.freeze(null), this.sceneIns = Object.freeze(null), this.leadHeadGroup = Object.freeze(null), this.splitLineGroup = Object.freeze(null), this.rowAndColwaveFromGroup = Object.freeze(null), this.singleWaveFromGroup = Object.freeze(null), this.addwaveFromGroup = Object.freeze(null), this.leadHeadNameGroup = Object.freeze(null), this.leadHeadOffAndDelGroup = Object.freeze(null), this.rulerGroup = Object.freeze(null), this.arrowGroup = Object.freeze(null), this.heardBeatLineGroup = Object.freeze(null), this.pacingGroup = Object.freeze(null), this.bottomAreaHeight = Object.freeze(55), this.dataTotalTimes = Object.freeze(0), this.totalRows = Object.freeze(0), this.rulerStep = Object.freeze(0), this.drawLoopArrowStartPosIdx = Object.freeze(0), this.dbClickWaveFromTime = Object.freeze(0), this.currentHeardBeat = {
28
28
  heardBeat: null,
@@ -56,7 +56,7 @@ let g = class extends K {
56
56
  }
57
57
  get waveFromData() {
58
58
  var e, t, i;
59
- return ((e = this.formatEcgData) == null ? void 0 : e.analysisValueMode) === S.CompoundWave ? ((t = this.formatEcgData) == null ? void 0 : t.processedData.handleData.ComplexData) || [[]] : ((i = this.formatEcgData) == null ? void 0 : i.processedData.handleData.Data) || [[]];
59
+ return ((e = this.formatEcgData) == null ? void 0 : e.analysisValueMode) === A.CompoundWave ? ((t = this.formatEcgData) == null ? void 0 : t.processedData.handleData.ComplexData) || [[]] : ((i = this.formatEcgData) == null ? void 0 : i.processedData.handleData.Data) || [[]];
60
60
  }
61
61
  get isSingleMode() {
62
62
  return this.leadModel.column === 1 && this.leadModel.line === 1;
@@ -69,8 +69,8 @@ let g = class extends K {
69
69
  };
70
70
  }
71
71
  destroyed() {
72
- var e, t, i, s, a, o, r, l, n, d, h, p;
73
- 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(), (r = this.leadHeadOffAndDelGroup) == null || r.removeAll(), (l = this.rulerGroup) == null || l.removeAll(), (n = this.arrowGroup) == null || n.removeAll(), (d = this.heardBeatLineGroup) == null || d.removeAll(), (h = this.pacingGroup) == null || h.removeAll(), (p = this.sceneIns) == null || p.dispose();
72
+ var e, t, i, s, a, o, r, l, n, d, h, u;
73
+ 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(), (r = this.leadHeadOffAndDelGroup) == null || r.removeAll(), (l = this.rulerGroup) == null || l.removeAll(), (n = this.arrowGroup) == null || n.removeAll(), (d = this.heardBeatLineGroup) == null || d.removeAll(), (h = this.pacingGroup) == null || h.removeAll(), (u = this.sceneIns) == null || u.dispose();
74
74
  }
75
75
  init() {
76
76
  var e;
@@ -104,7 +104,7 @@ let g = class extends K {
104
104
  this.initConfig(), this.drawLeadHead(), this.drawColSplitLine(), this.initSlidingWindowInfo(), this.drawPacing(), this.drawRulerNotes(), this.drawWaveFrom();
105
105
  }
106
106
  initConfig() {
107
- var t, i, s, a, o, r, l, n, d, h, p;
107
+ var t, i, s, a, o, r, l, n, d, h, u;
108
108
  this.rowAndColwaveFromGroup = new C({
109
109
  name: "rowAndColwaveFrom"
110
110
  }), this.singleWaveFromGroup = new C({
@@ -130,8 +130,8 @@ let g = class extends K {
130
130
  }), (this.leadModel.name === "12*1" || this.leadModel.name === "18*1" || this.leadModel.name === "15*1" || this.leadModel.name === "16*1") && (this.sceneMagnification = 0.8), this.vuescrollWH.width = 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 = Q(((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.SampleRate) || 0) + this.leadHeadConfig.leadHedeWidth;
134
- m <= e && (e = m);
133
+ const w = Q(((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.SampleRate) || 0) + this.leadHeadConfig.leadHedeWidth;
134
+ w <= e && (e = w);
135
135
  } else
136
136
  this.leadModel.isContinuous && !this.isSingleMode && (((a = this.formatEcgData) == null ? void 0 : a.dataPxLen) || 0) < e - this.leadHeadConfig.leadHedeWidth && (e = (((o = this.formatEcgData) == null ? void 0 : o.dataPxLen) || 0) + this.leadHeadConfig.leadHedeWidth);
137
137
  if (this.drawArea = {
@@ -152,15 +152,15 @@ let g = class extends K {
152
152
  heardBeat: null,
153
153
  ele: null
154
154
  }, this.leadNameList = ((r = this.formatEcgData) == null ? void 0 : r.processedData.otherParams.LeadName) || [], this.totalRows = this.leadModel.line + this.leadModel.add || 1, this.highestAndLowestPoint = (l = this.formatEcgData) == null ? void 0 : l.calcHighestAndLowestPoint(), this.isSingleMode)
155
- this.splitBlockHeight = (((n = this.formatEcgData) == null ? void 0 : n.analysisValueMode) === S.CompoundWave ? Math.abs(this.highestAndLowestPoint.ComplexData.maxPoints) + Math.abs(this.highestAndLowestPoint.ComplexData.minPoints) : Math.abs(this.highestAndLowestPoint.Data.maxPoints) + Math.abs(this.highestAndLowestPoint.Data.minPoints)) + 22, this.splitBlockHeight > this.drawArea.height && (this.splitBlockHeight = this.drawArea.height / 6, this.splitBlockHeight2 = this.drawArea.height / 6);
155
+ this.splitBlockHeight = (((n = this.formatEcgData) == null ? void 0 : n.analysisValueMode) === A.CompoundWave ? Math.abs(this.highestAndLowestPoint.ComplexData.maxPoints) + Math.abs(this.highestAndLowestPoint.ComplexData.minPoints) : Math.abs(this.highestAndLowestPoint.Data.maxPoints) + Math.abs(this.highestAndLowestPoint.Data.minPoints)) + 22, this.splitBlockHeight > this.drawArea.height && (this.splitBlockHeight = this.drawArea.height / 6, this.splitBlockHeight2 = this.drawArea.height / 6);
156
156
  else {
157
- let m = this.drawArea.height;
158
- this.leadModel.isShowPacing && (m = this.drawArea.height - this.drawBottomPacH), this.splitBlockHeight = m / this.totalRows, this.splitBlockHeight2 = m / this.totalRows;
157
+ let w = this.drawArea.height;
158
+ this.leadModel.isShowPacing && (w = this.drawArea.height - this.drawBottomPacH), this.splitBlockHeight = w / this.totalRows, this.splitBlockHeight2 = w / this.totalRows;
159
159
  }
160
- this.dataTotalTimes = F(
160
+ this.dataTotalTimes = P(
161
161
  this.waveFromData[0].length || 0,
162
162
  ((d = this.formatEcgData) == null ? void 0 : d.processedData.otherParams.SampleRate) || 0
163
- ), this.rulerStep = (((h = this.formatEcgData) == null ? void 0 : h.step) || 1) * (((p = this.formatEcgData) == null ? void 0 : p.processedData.otherParams.SampleRate) || 1) / (this.gridConfig.cellMg * 2 + 2);
163
+ ), this.rulerStep = (((h = this.formatEcgData) == null ? void 0 : h.step) || 1) * (((u = this.formatEcgData) == null ? void 0 : u.processedData.otherParams.SampleRate) || 1) / (this.gridConfig.cellMg * 2 + 2);
164
164
  }
165
165
  isLeadOff(e) {
166
166
  var t;
@@ -173,53 +173,53 @@ let g = class extends K {
173
173
  onDbClickWaveFrom(e, t) {
174
174
  console.log("onDbClickWaveFrom", e);
175
175
  const i = Date.now(), s = () => {
176
- var p, m, f, D;
176
+ var u, w, g, y;
177
177
  const a = e.target.name.split("_");
178
178
  this.activeLeadIdx = +a[0];
179
179
  const o = +a[1];
180
180
  let r = 0, l = 0;
181
181
  t === "single" ? (r = e.offsetX - this.singleWaveDataCopy[o].pos[0], l = this.singleWaveDataCopy[o].startInd) : t === "rowAndCol" ? (r = e.offsetX - this.waveDataCopy[o].pos[0], l = this.waveDataCopy[o].startInd || 0) : t === "add" && (r = e.offsetX - this.addWaveDataCopy[o].pos[0], l = this.addWaveDataCopy[o].startInd || 0);
182
- let n = x(r, (((p = this.formatEcgData) == null ? void 0 : p.step) || 1) * this.sceneMagnification);
182
+ let n = x(r, (((u = this.formatEcgData) == null ? void 0 : u.step) || 1) * this.sceneMagnification);
183
183
  n += l;
184
- const d = ((m = this.formatEcgData) == null ? void 0 : m.processedData.otherParams.AnalyseValue) || [];
184
+ const d = ((w = this.formatEcgData) == null ? void 0 : w.processedData.otherParams.AnalyseValue) || [];
185
185
  let h = null;
186
- if (this.enlargeWaveMode === S.SelectedHeartbeat) {
187
- if (n <= d[1].KeyPosByBeat.Tend + 0.1 * (((f = this.formatEcgData) == null ? void 0 : f.processedData.otherParams.SampleRate) || 0))
186
+ if (this.enlargeWaveMode === A.SelectedHeartbeat) {
187
+ if (n <= d[1].KeyPosByBeat.Tend + 0.1 * (((g = this.formatEcgData) == null ? void 0 : g.processedData.otherParams.SampleRate) || 0))
188
188
  h = d[1];
189
189
  else
190
- for (let v = 1; v < d.length; v++)
191
- if (n > d[v - 1].KeyPosByBeat.Tend + 1 && n < d[v].KeyPosByBeat.Tend + 0.1 * (((D = this.formatEcgData) == null ? void 0 : D.processedData.otherParams.SampleRate) || 0)) {
192
- h = d[v];
190
+ for (let D = 1; D < d.length; D++)
191
+ if (n > d[D - 1].KeyPosByBeat.Tend + 1 && n < d[D].KeyPosByBeat.Tend + 0.1 * (((y = this.formatEcgData) == null ? void 0 : y.processedData.otherParams.SampleRate) || 0)) {
192
+ h = d[D];
193
193
  break;
194
194
  }
195
195
  } else
196
196
  h = d[0];
197
- !h || (this.activeLeadAnalyseValue = H(y({}, h), {
197
+ !h || (this.activeLeadAnalyseValue = H(v({}, h), {
198
198
  BeatCount: d.length - 1
199
199
  }), h = null, this.$emit("notifyActiveEnlargr"), this.isShowEnlargeWave = !0);
200
200
  };
201
201
  i - this.dbClickWaveFromTime < 400 ? (this.dbClickWaveFromTime = 0, s()) : this.dbClickWaveFromTime = i;
202
202
  }
203
203
  sceneInsMousemove(e) {
204
- var t, i, s, a, o, r, l, n, d, h, p, m, f;
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
- const D = e.offsetY - this.sceneIsStartY, v = e.offsetX - this.sceneIsStartX;
208
- Math.abs(D) > Math.abs(v) ? (this.sceneIsMoveUpDown = !0, this.moveUpAndDown(e.offsetY - this.sceneIsMouseDownY), this.sceneIsMouseDownY = e.offsetY) : (this.sceneIsMoveUpDown = !1, this.scrollConfig.isNativeScroll ? (t = this.$refs[this.prefixId + "nativeScroll"]) == null || t.scrollBy({
207
+ const i = e.offsetY - this.sceneIsStartY, s = e.offsetX - this.sceneIsStartX;
208
+ Math.abs(i) > Math.abs(s) ? (this.sceneIsMoveUpDown = !0, this.moveUpAndDown(e.offsetY - this.sceneIsMouseDownY), this.sceneIsMouseDownY = e.offsetY) : (this.sceneIsMoveUpDown = !1, this.scrollConfig.isNativeScroll ? (t = this.$refs[this.prefixId + "nativeScroll"]) == null || t.scrollBy({
209
209
  left: -(e.offsetX - this.sceneIsMouseDownX),
210
210
  top: 0
211
211
  }) : this.$refs[this.prefixId + "vueScroll"].scrollBy({
212
212
  dx: -(e.offsetX - this.sceneIsMouseDownX)
213
213
  }), this.sceneIsMouseDownX = e.offsetX);
214
214
  } else if (this.supportTwoFingerZoom && e.event.touches.length === 2) {
215
- const D = $({
215
+ const i = $({
216
216
  x: e.event.touches[0].pageX,
217
217
  y: e.event.touches[0].pageY
218
218
  }, {
219
219
  x: e.event.touches[1].pageX,
220
220
  y: e.event.touches[1].pageY
221
221
  });
222
- this.sceneFirstDistance === 0 && (this.sceneFirstDistance = D), D < this.sceneFirstDistance ? (this.sceneMagnification -= this.zoomStep, this.sceneMagnification < 0.7 && (this.sceneMagnification = 0.7)) : this.sceneMagnification += this.zoomStep, this.splitBlockHeight = this.splitBlockHeight2 * this.sceneMagnification, (i = this.leadHeadNameGroup) == null || i.removeAll(), (s = this.leadHeadOffAndDelGroup) == null || s.removeAll(), (a = this.heardBeatLineGroup) == null || a.removeAll(), (o = this.rulerGroup) == null || o.removeAll(), (r = this.arrowGroup) == null || r.removeAll(), (l = this.splitLineGroup) == null || l.removeAll(), (n = this.sceneIns) == null || n.remove(this.splitLineGroup), (d = this.rowAndColwaveFromGroup) == null || d.removeAll(), (h = this.singleWaveFromGroup) == null || h.removeAll(), (p = this.addwaveFromGroup) == null || p.removeAll(), (m = this.leadHeadGroup) == null || m.removeAll(), (f = this.pacingGroup) == null || f.removeAll(), this.drawWaveFrom(), this.sceneFirstDistance = D, this.zoomWave();
222
+ this.sceneFirstDistance === 0 && (this.sceneFirstDistance = i), i < this.sceneFirstDistance ? (this.sceneMagnification -= this.zoomStep, this.sceneMagnification < 0.7 && (this.sceneMagnification = 0.7)) : this.sceneMagnification += this.zoomStep, this.splitBlockHeight = this.splitBlockHeight2 * this.sceneMagnification, this.sceneFirstDistance = i, this.zoomWave();
223
223
  }
224
224
  }
225
225
  }
@@ -258,13 +258,13 @@ let g = class extends K {
258
258
  const i = Math.ceil((this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / e);
259
259
  this.addSlidingWindowInfo.points = i, this.drawLeadHead(), this.drawColSplitLine(), this.isSingleMode ? (this.slidingWindowInfo.endInd = t, this.addWaveDataCopy = [], this.waveDataCopy = [], this.createSingleWaveFrom(), (o = this.sceneIns) == null || o.add(this.singleWaveFromGroup)) : this.scrollWaveFrom(this.rulerHistorySlidIdxs), this.scrollRuler(this.rulerHistorySlidIdxs), this.scrollArrow(this.rulerHistorySlidIdxs), (r = this.leadHeadNameGroup) == null || r.eachChild((n, d) => {
260
260
  n.attr({
261
- style: H(y({}, n.style), {
261
+ style: H(v({}, n.style), {
262
262
  y: n.style.y * this.sceneMagnification
263
263
  })
264
264
  });
265
265
  }), (l = this.leadHeadOffAndDelGroup) == null || l.eachChild((n, d) => {
266
266
  n.attr({
267
- style: H(y({}, n.style), {
267
+ style: H(v({}, n.style), {
268
268
  y: n.style.y * this.sceneMagnification
269
269
  })
270
270
  });
@@ -298,7 +298,7 @@ let g = class extends K {
298
298
  fill: this.leadConfig.lineColor,
299
299
  fontFamily: this.fontFamily
300
300
  }
301
- })), (l = this.pacingGroup) == null || l.add(new A({
301
+ })), (l = this.pacingGroup) == null || l.add(new G({
302
302
  cursor: "",
303
303
  name: "0_0",
304
304
  shape: {
@@ -324,7 +324,7 @@ let g = class extends K {
324
324
  var o;
325
325
  const s = this.leadHeadConfig.leadHedeWidth / 4;
326
326
  let a = (((o = this.formatEcgData) == null ? void 0 : o.sens) || 0) * this.sceneMagnification;
327
- return a = i ? a / 2 : a, new A({
327
+ return a = i ? a / 2 : a, new G({
328
328
  cursor: "",
329
329
  shape: {
330
330
  points: [
@@ -385,11 +385,11 @@ let g = class extends K {
385
385
  (l = this.sceneIns) == null || l.add(this.leadHeadGroup);
386
386
  }
387
387
  drawColSplitLine() {
388
- var a, o, r, l, n, d, h, p, m, f, D, v, G;
388
+ var a, o, r, l, n, d, h, u, w, g, y, D, F;
389
389
  (a = this.splitLineGroup) == null || a.removeAll(), (o = this.sceneIns) == null || o.remove(this.splitLineGroup);
390
390
  const e = (this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / this.leadModel.column;
391
391
  if (this.splitPoint = e, this.isSingleMode) {
392
- const M = F(
392
+ const M = P(
393
393
  Math.ceil(this.splitPoint / ((((r = this.formatEcgData) == null ? void 0 : r.step) || 1) * this.sceneMagnification)) || 0,
394
394
  ((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.SampleRate) || 0
395
395
  ), W = parseInt(`${M / 1e3 % 60}`, 10);
@@ -399,9 +399,9 @@ let g = class extends K {
399
399
  for (let M = 1; M <= this.leadModel.column - 1; M++) {
400
400
  t = M * e + this.leadHeadConfig.leadHedeWidth, i = M * this.leadModel.line;
401
401
  for (let W = 1; W <= this.leadModel.line && (s = (((h = this.formatEcgData) == null ? void 0 : h.processedData.otherParams.LeadName) || [])[W - 1 + i], s !== void 0); W++)
402
- ((p = this.formatEcgData) == null ? void 0 : p.gainName) === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.LeadNameTextsPorps[s]) ? (f = this.splitLineGroup) == null || f.add(this.creatSplitLine(t, W * this.splitBlockHeight - (((m = this.formatEcgData) == null ? void 0 : m.sens) || 0) * this.sceneMagnification / 2 * 0.5, !0)) : (v = this.splitLineGroup) == null || v.add(this.creatSplitLine(t, W * this.splitBlockHeight - (((D = this.formatEcgData) == null ? void 0 : D.sens) || 0) * this.sceneMagnification * 0.5));
402
+ ((u = this.formatEcgData) == null ? void 0 : u.gainName) === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.LeadNameTextsPorps[s]) ? (g = this.splitLineGroup) == null || g.add(this.creatSplitLine(t, W * this.splitBlockHeight - (((w = this.formatEcgData) == null ? void 0 : w.sens) || 0) * this.sceneMagnification / 2 * 0.5, !0)) : (D = this.splitLineGroup) == null || D.add(this.creatSplitLine(t, W * this.splitBlockHeight - (((y = this.formatEcgData) == null ? void 0 : y.sens) || 0) * this.sceneMagnification * 0.5));
403
403
  }
404
- (G = this.sceneIns) == null || G.add(this.splitLineGroup);
404
+ (F = this.sceneIns) == null || F.add(this.splitLineGroup);
405
405
  }
406
406
  initSlidingWindowInfo() {
407
407
  var s, a;
@@ -431,8 +431,8 @@ let g = class extends K {
431
431
  startInd: s,
432
432
  endInd: a,
433
433
  data: i.slice(s, a).map((d, h) => {
434
- var p;
435
- return [h * (((p = this.formatEcgData) == null ? void 0 : p.step) || 0) * this.sceneMagnification, -d * this.sceneMagnification];
434
+ var u;
435
+ return [h * (((u = this.formatEcgData) == null ? void 0 : u.step) || 0) * this.sceneMagnification, -d * this.sceneMagnification];
436
436
  })
437
437
  });
438
438
  }
@@ -449,8 +449,8 @@ let g = class extends K {
449
449
  startInd: a,
450
450
  endInd: o,
451
451
  data: s.slice(a, o).map((d, h) => {
452
- var p;
453
- return [h * (((p = this.formatEcgData) == null ? void 0 : p.step) || 0) * this.sceneMagnification, -d * this.sceneMagnification];
452
+ var u;
453
+ return [h * (((u = this.formatEcgData) == null ? void 0 : u.step) || 0) * this.sceneMagnification, -d * this.sceneMagnification];
454
454
  })
455
455
  });
456
456
  }
@@ -472,49 +472,49 @@ let g = class extends K {
472
472
  return e;
473
473
  }
474
474
  createSingleWaveFrom() {
475
- var r, l, n, d, h, p, m;
475
+ var r, l, n, d, h, u, w;
476
476
  (r = this.singleWaveFromGroup) == null || r.removeAll();
477
477
  const e = (((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.LeadName) || [])[this.singleModeInfo.defaultSelect] || 0;
478
- let t = this.getRednerSinglePoints(), i = F(this.slidingWindowInfo.points || 0, ((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0);
478
+ let t = this.getRednerSinglePoints(), i = P(this.slidingWindowInfo.points || 0, ((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0);
479
479
  const s = i;
480
480
  let a = 0, o = 0;
481
- for (let f = 0; f < t.length && !(t[f].pos[1] > this.drawArea.height + this.bottomAreaHeight); f++)
482
- this.isLeadDel(e) || (a = Math.floor(i / 1e3 / 60), o = Math.floor(i / 1e3 % 60), a = o === 60 ? a += 1 : a, a = a === 0 ? "00" : a < 10 ? `0${a}` : a, o = o === 0 || o === 60 ? "00" : o < 10 ? `0${o}` : o, (d = this.singleWaveFromGroup) == null || d.add(new A({
481
+ for (let g = 0; g < t.length && !(t[g].pos[1] > this.drawArea.height + this.bottomAreaHeight); g++)
482
+ this.isLeadDel(e) || (a = Math.floor(i / 1e3 / 60), o = Math.floor(i / 1e3 % 60), a = o === 60 ? a += 1 : a, a = a === 0 ? "00" : a < 10 ? `0${a}` : a, o = o === 0 || o === 60 ? "00" : o < 10 ? `0${o}` : o, (d = this.singleWaveFromGroup) == null || d.add(new G({
483
483
  cursor: "",
484
- name: this.singleModeInfo.defaultSelect + "_" + f,
484
+ name: this.singleModeInfo.defaultSelect + "_" + g,
485
485
  shape: {
486
- points: t[f].data.map(([D, v]) => [
487
- D + t[f].pos[0],
488
- v + t[f].pos[1]
486
+ points: t[g].data.map(([y, D]) => [
487
+ y + t[g].pos[0],
488
+ D + t[g].pos[1]
489
489
  ])
490
490
  },
491
491
  style: {
492
492
  stroke: this.leadConfig.lineColor,
493
493
  lineWidth: this.leadConfig.lineWidth
494
494
  },
495
- onclick: (D) => {
496
- this.onDbClickWaveFrom(D, "single");
495
+ onclick: (y) => {
496
+ this.onDbClickWaveFrom(y, "single");
497
497
  }
498
- })), (p = this.singleWaveFromGroup) == null || p.add(new I({
498
+ })), (u = this.singleWaveFromGroup) == null || u.add(new I({
499
499
  cursor: "",
500
500
  style: {
501
- x: t[f].pos[0],
502
- y: t[f].pos[1] - (((h = this.formatEcgData) == null ? void 0 : h.sens) || 0) * this.sceneMagnification / 2,
503
- text: f === 0 ? "00:00 \u5FC3\u7387" : `${a}:${o} \u5FC3\u7387`,
501
+ x: t[g].pos[0],
502
+ y: t[g].pos[1] - (((h = this.formatEcgData) == null ? void 0 : h.sens) || 0) * this.sceneMagnification / 2,
503
+ text: g === 0 ? "00:00 \u5FC3\u7387" : `${a}:${o} \u5FC3\u7387`,
504
504
  fontWeight: "bold",
505
505
  fontSize: 14,
506
506
  fill: "#FF0080",
507
507
  fontFamily: this.fontFamily
508
508
  }
509
- })), f > 0 && (i += s));
510
- this.createLeadName(e, t[0].pos[0] - 10, t[0].pos[1] + 10), this.createLeadOffAndDel(e, t[0].pos[0] - 5, t[0].pos[1] - (((m = this.formatEcgData) == null ? void 0 : m.sens) || 0) * this.sceneMagnification / 2 - 15), this.singleWaveDataCopy = t, t = null;
509
+ })), g > 0 && (i += s));
510
+ this.createLeadName(e, t[0].pos[0] - 10, t[0].pos[1] + 10), this.createLeadOffAndDel(e, t[0].pos[0] - 5, t[0].pos[1] - (((w = this.formatEcgData) == null ? void 0 : w.sens) || 0) * this.sceneMagnification / 2 - 15), this.singleWaveDataCopy = t, t = null;
511
511
  }
512
512
  createAddWaveFrom() {
513
513
  var t, i;
514
514
  console.time("createAddWaveFrom");
515
515
  let e = this.getAddRednerPoints();
516
516
  for (let s = 0; s < e.length; s++)
517
- this.isLeadDel(this.longLeadConfig.leadIdxs[s]) || ((t = this.addwaveFromGroup) == null || t.add(new A({
517
+ this.isLeadDel(this.longLeadConfig.leadIdxs[s]) || ((t = this.addwaveFromGroup) == null || t.add(new G({
518
518
  cursor: "",
519
519
  name: this.longLeadConfig.leadIdxs[s] + "_" + s,
520
520
  shape: {
@@ -538,7 +538,7 @@ let g = class extends K {
538
538
  console.time("createRowAndColWaveFrom"), (i = this.rowAndColwaveFromGroup) == null || i.removeAll();
539
539
  let e = this.getRednerPoints(), t = 0;
540
540
  for (let n = 0; n < e.length; n++)
541
- t = (((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.LeadName) || [])[n] || 0, this.isLeadDel(t) || (a = this.rowAndColwaveFromGroup) == null || a.add(new A({
541
+ t = (((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.LeadName) || [])[n] || 0, this.isLeadDel(t) || (a = this.rowAndColwaveFromGroup) == null || a.add(new G({
542
542
  cursor: "",
543
543
  name: n + "_" + n,
544
544
  shape: {
@@ -570,7 +570,7 @@ let g = class extends K {
570
570
  },
571
571
  oncontextmenu: (o) => {
572
572
  o.event.preventDefault(), this.$emit("notiifyLeadName", {
573
- event: H(y({}, o), {
573
+ event: H(v({}, o), {
574
574
  name: this.LeadNameTextsPorps[e],
575
575
  idx: e
576
576
  }),
@@ -579,7 +579,7 @@ let g = class extends K {
579
579
  },
580
580
  onclick: (o) => {
581
581
  this.$emit("notiifyLeadName", {
582
- event: H(y({}, o), {
582
+ event: H(v({}, o), {
583
583
  name: this.LeadNameTextsPorps[e],
584
584
  idx: e
585
585
  }),
@@ -613,13 +613,13 @@ let g = class extends K {
613
613
  fontFamily: this.fontFamily
614
614
  }, t = new I({
615
615
  cursor: "",
616
- style: y({
616
+ style: v({
617
617
  text: "(s)",
618
618
  x: this.leadHeadConfig.leadHedeWidth / 2 - 8,
619
619
  y: this.canvasContainer.height - 25
620
620
  }, e)
621
621
  }), i = new I({
622
- style: y({
622
+ style: v({
623
623
  text: `${((s = this.formatEcgData) == null ? void 0 : s.gainName) === "\u80F8\u5BFC\u51CF\u534A" ? (a = this.formatEcgData) == null ? void 0 : a.gainName : `${(o = this.formatEcgData) == null ? void 0 : o.gain}mm/mV`} ${(r = this.formatEcgData) == null ? void 0 : r.speed}mm/s`,
624
624
  x: this.leadHeadConfig.leadHedeWidth / 2 + 20,
625
625
  y: this.canvasContainer.height - this.ruleH
@@ -636,8 +636,8 @@ let g = class extends K {
636
636
  if (this.leadModel.isContinuous)
637
637
  a = t * 5;
638
638
  else if (!this.leadModel.add && ((o = this.formatEcgData) == null ? void 0 : o.step)) {
639
- const h = x(this.splitPoint, this.formatEcgData.step * this.sceneMagnification), p = F(h, ((r = this.formatEcgData) == null ? void 0 : r.processedData.otherParams.SampleRate) || 0) / 1e3;
640
- a = e + p;
639
+ const h = x(this.splitPoint, this.formatEcgData.step * this.sceneMagnification), u = P(h, ((r = this.formatEcgData) == null ? void 0 : r.processedData.otherParams.SampleRate) || 0) / 1e3;
640
+ a = e + u;
641
641
  }
642
642
  for (let h = e; h <= a; h = +(h + 0.1).toFixed(1))
643
643
  h !== e && (i += this.rulerStep * this.sceneMagnification), h % 1 === 0 ? (s = this.canvasContainer.height - 10, (l = this.rulerGroup) == null || l.add(new I({
@@ -674,7 +674,7 @@ let g = class extends K {
674
674
  (e = this.sceneIns) == null || e.add(this.leadHeadNameGroup), (t = this.sceneIns) == null || t.add(this.leadHeadOffAndDelGroup);
675
675
  }
676
676
  drawLoopArrow(e = 0) {
677
- var l, n, d, h, p, m, f, D, v, G, M, W, B, R, z, k, N;
677
+ var l, n, d, h, u, w, g, y, D, F, M, W, B, R, z, k, N;
678
678
  if (this.drawLoopArrowStartPosIdx = e, !this.heartFight.isShow)
679
679
  return;
680
680
  this.heartFight.mode && this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = ((l = this.formatEcgData) == null ? void 0 : l.heartBeatPosition[this.heartFight.defaultSelect]) || null, this.drawHeardBeatLine());
@@ -692,7 +692,7 @@ let g = class extends K {
692
692
  if (r = ((c == null ? void 0 : c.position) || 0) - e, !(e > ((c == null ? void 0 : c.position) || 0)) && !(!this.leadModel.isContinuous && !this.leadModel.add && r > (this.slidingWindowInfo.points || 0)) && !(this.isSingleMode && this.singleModeInfo && r > (this.slidingWindowInfo.points || 0))) {
693
693
  if (((c == null ? void 0 : c.position) || 0) - this.addSlidingWindowInfo.startInd > (this.addSlidingWindowInfo.points || 0))
694
694
  break;
695
- t = r * (((p = this.formatEcgData) == null ? void 0 : p.step) || 0) * this.sceneMagnification + this.leadHeadConfig.leadHedeWidth - 9.5, a = 0, (D = this.arrowGroup) == null || D.add(new te({
695
+ t = r * (((u = this.formatEcgData) == null ? void 0 : u.step) || 0) * this.sceneMagnification + this.leadHeadConfig.leadHedeWidth - 9.5, a = 0, (y = this.arrowGroup) == null || y.add(new te({
696
696
  name: "arrow_box",
697
697
  shape: {
698
698
  points: [
@@ -707,42 +707,42 @@ let g = class extends K {
707
707
  ]
708
708
  },
709
709
  style: {
710
- fill: ((f = (m = this.currentHeardBeat) == null ? void 0 : m.heardBeat) == null ? void 0 : f.index) === (c == null ? void 0 : c.index) ? "blue" : "#ccc"
710
+ fill: ((g = (w = this.currentHeardBeat) == null ? void 0 : w.heardBeat) == null ? void 0 : g.index) === (c == null ? void 0 : c.index) ? "blue" : "#ccc"
711
711
  },
712
712
  onclick: (E) => {
713
713
  var j;
714
714
  !this.heartFight.mode || (E.target.attr({
715
715
  style: { fill: "blue" }
716
- }), (j = this.arrowGroup) == null || j.children().filter((P) => P.name === "arrow_box").forEach((P) => {
717
- P.id !== E.target.id && P.attr({
716
+ }), (j = this.arrowGroup) == null || j.children().filter((S) => S.name === "arrow_box").forEach((S) => {
717
+ S.id !== E.target.id && S.attr({
718
718
  style: { fill: "#ccc" }
719
719
  });
720
720
  }), this.arrowLoopClick(c, E.target));
721
721
  }
722
- })), this.heartFight.heartrate && (s = ((v = this.AssistCtx) == null ? void 0 : v.measureText(`${(c == null ? void 0 : c.heartrate) || ""}`).width) || 0, (G = this.arrowGroup) == null || G.add(new I({
722
+ })), this.heartFight.heartrate && (s = ((D = this.AssistCtx) == null ? void 0 : D.measureText(`${(c == null ? void 0 : c.heartrate) || ""}`).width) || 0, (F = this.arrowGroup) == null || F.add(new I({
723
723
  cursor: "",
724
- style: y({
724
+ style: v({
725
725
  x: 4 + t - s * 1.5,
726
726
  y: a + i,
727
727
  text: `${(c == null ? void 0 : c.heartrate) || ""}`
728
728
  }, o)
729
729
  })), a += 12), this.heartFight.interval && (s = ((M = this.AssistCtx) == null ? void 0 : M.measureText(`${(c == null ? void 0 : c.interval) || ""}`).width) || 0, (W = this.arrowGroup) == null || W.add(new I({
730
730
  cursor: "",
731
- style: y({
731
+ style: v({
732
732
  x: 4 + t - s * 1.5,
733
733
  y: a + i,
734
734
  text: `${(c == null ? void 0 : c.interval) || ""}`
735
735
  }, o)
736
736
  })), a += 12), this.heartFight.qrstCompany && (s = ((B = this.AssistCtx) == null ? void 0 : B.measureText(`${(c == null ? void 0 : c.qrstCompany) || ""}`).width) || 0, (R = this.arrowGroup) == null || R.add(new I({
737
737
  cursor: "",
738
- style: y({
738
+ style: v({
739
739
  x: 4 + t - s * 1.5,
740
740
  y: a + i,
741
741
  text: `${(c == null ? void 0 : c.qrstCompany) || ""}`
742
742
  }, o)
743
743
  })), a += 12), this.heartFight.telectricalaxis && (s = ((z = this.AssistCtx) == null ? void 0 : z.measureText(`${(c == null ? void 0 : c.telectricalaxis) || ""}`).width) || 0, (k = this.arrowGroup) == null || k.add(new I({
744
744
  cursor: "",
745
- style: y({
745
+ style: v({
746
746
  x: 4 + t - s * 1.5,
747
747
  y: a + i,
748
748
  text: `${(c == null ? void 0 : c.telectricalaxis) || ""}`
@@ -756,30 +756,30 @@ let g = class extends K {
756
756
  this.$emit("notifyHeardBeat", ie.clone(e)), this.currentHeardBeat.heardBeat = e, this.currentHeardBeat.ele = t, this.drawHeardBeatLine();
757
757
  }
758
758
  drawHeardBeatLine(e = 0) {
759
- var r, l, n, d, h, p;
759
+ var r, l, n, d, h, u;
760
760
  if (!this.currentHeardBeat.heardBeat)
761
761
  return;
762
762
  (r = this.heardBeatLineGroup) == null || r.removeAll(), (l = this.sceneIns) == null || l.remove(this.heardBeatLineGroup);
763
763
  let t = this.formatEcgData.processedData.otherParams.AnalyseValue[this.currentHeardBeat.heardBeat.index].KeyPosByBeat, i = 0, s = this.getRednerPoints(), a = this.getAddRednerPoints(), o;
764
- for (const m in t)
765
- if (["Pstart", "Pend", "QRSstart", "QRSend", "Tstart", "Tend"].includes(m) && Object.prototype.hasOwnProperty.call(t, m)) {
766
- i = (t[m] - this.slidingWindowInfo.startInd) * (((n = this.formatEcgData) == null ? void 0 : n.step) || 0) * this.sceneMagnification;
764
+ for (const w in t)
765
+ if (["Pstart", "Pend", "QRSstart", "QRSend", "Tstart", "Tend"].includes(w) && Object.prototype.hasOwnProperty.call(t, w)) {
766
+ i = (t[w] - this.slidingWindowInfo.startInd) * (((n = this.formatEcgData) == null ? void 0 : n.step) || 0) * this.sceneMagnification;
767
767
  e:
768
- for (let f = 0; f < s.length; f++)
769
- if (!(this.isLeadOff(f) || this.isLeadDel(f))) {
770
- if (e > t[m] || !this.leadModel.isContinuous && t[m] - this.slidingWindowInfo.startInd > (this.slidingWindowInfo.points || 0) || (o = s[f], this.leadModel.isContinuous && f > this.leadModel.line - 1))
768
+ for (let g = 0; g < s.length; g++)
769
+ if (!(this.isLeadOff(g) || this.isLeadDel(g))) {
770
+ if (e > t[w] || !this.leadModel.isContinuous && t[w] - this.slidingWindowInfo.startInd > (this.slidingWindowInfo.points || 0) || (o = s[g], this.leadModel.isContinuous && g > this.leadModel.line - 1))
771
771
  break e;
772
772
  (d = this.heardBeatLineGroup) == null || d.add(this.createHeardBeatLine(o.pos[0] + i, o.pos[1]));
773
773
  }
774
774
  e:
775
- for (let f = 0; f < a.length; f++)
776
- if (!(this.isLeadOff(this.longLeadConfig.leadIdxs[f]) && this.isLeadDel(this.longLeadConfig.leadIdxs[f]))) {
777
- if (e > t[m])
775
+ for (let g = 0; g < a.length; g++)
776
+ if (!(this.isLeadOff(this.longLeadConfig.leadIdxs[g]) && this.isLeadDel(this.longLeadConfig.leadIdxs[g]))) {
777
+ if (e > t[w])
778
778
  break e;
779
- o = a[f], (h = this.heardBeatLineGroup) == null || h.add(this.createHeardBeatLine(o.pos[0] + i, o.pos[1]));
779
+ o = a[g], (h = this.heardBeatLineGroup) == null || h.add(this.createHeardBeatLine(o.pos[0] + i, o.pos[1]));
780
780
  }
781
781
  }
782
- (p = this.sceneIns) == null || p.add(this.heardBeatLineGroup), t = null, s = null, a = null;
782
+ (u = this.sceneIns) == null || u.add(this.heardBeatLineGroup), t = null, s = null, a = null;
783
783
  }
784
784
  createHeardBeatLine(e, t) {
785
785
  return new b({
@@ -816,18 +816,18 @@ let g = class extends K {
816
816
  this.waveDataCopy = t, this.addWaveDataCopy = i, (s = this.rowAndColwaveFromGroup) == null || s.eachChild((d, h) => {
817
817
  h = h || 0, d.attr({
818
818
  shape: {
819
- points: t[h].data.map(([p, m]) => [
820
- p + t[h].pos[0],
821
- m + t[h].pos[1]
819
+ points: t[h].data.map(([u, w]) => [
820
+ u + t[h].pos[0],
821
+ w + t[h].pos[1]
822
822
  ])
823
823
  }
824
824
  });
825
825
  }), (a = this.addwaveFromGroup) == null || a.eachChild((d, h) => {
826
826
  h = h || 0, d.attr({
827
827
  shape: {
828
- points: i[h].data.map(([p, m]) => [
829
- p + i[h].pos[0],
830
- m + i[h].pos[1]
828
+ points: i[h].data.map(([u, w]) => [
829
+ u + i[h].pos[0],
830
+ w + i[h].pos[1]
831
831
  ])
832
832
  }
833
833
  });
@@ -843,7 +843,7 @@ let g = class extends K {
843
843
  scrollRuler(e) {
844
844
  var i, s, a;
845
845
  (i = this.rulerGroup) == null || i.removeAll(), (s = this.sceneIns) == null || s.remove(this.rulerGroup);
846
- const t = F(this.isSingleMode ? 0 : e, ((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.SampleRate) || 0) / 1e3;
846
+ const t = P(this.isSingleMode ? 0 : e, ((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.SampleRate) || 0) / 1e3;
847
847
  this.drawRuler(t);
848
848
  }
849
849
  scrollArrow(e) {
@@ -851,90 +851,90 @@ let g = class extends K {
851
851
  (t = this.arrowGroup) == null || t.removeAll(), (i = this.sceneIns) == null || i.remove(this.arrowGroup), this.drawLoopArrow(e), this.drawHeardBeatLine(e);
852
852
  }
853
853
  };
854
- u([
855
- w({
854
+ p([
855
+ m({
856
856
  default: () => 0.04
857
857
  })
858
- ], g.prototype, "zoomStep", 2);
859
- u([
860
- w({
858
+ ], f.prototype, "zoomStep", 2);
859
+ p([
860
+ m({
861
861
  default: () => !0
862
862
  })
863
- ], g.prototype, "supportTwoFingerZoom", 2);
864
- u([
865
- w({
863
+ ], f.prototype, "supportTwoFingerZoom", 2);
864
+ p([
865
+ m({
866
866
  default: () => ""
867
867
  })
868
- ], g.prototype, "prefixId", 2);
869
- u([
870
- w({
868
+ ], f.prototype, "prefixId", 2);
869
+ p([
870
+ m({
871
871
  required: !0,
872
872
  type: Number,
873
873
  validator: (e) => typeof e == "number"
874
874
  })
875
- ], g.prototype, "width", 2);
876
- u([
877
- w({
875
+ ], f.prototype, "width", 2);
876
+ p([
877
+ m({
878
878
  required: !0,
879
879
  type: Number,
880
880
  validator: (e) => typeof e == "number"
881
881
  })
882
- ], g.prototype, "height", 2);
883
- u([
884
- w({
882
+ ], f.prototype, "height", 2);
883
+ p([
884
+ m({
885
885
  default: 0,
886
886
  validator: (e) => typeof e == "number"
887
887
  })
888
- ], g.prototype, "MXEnlargeWaveWidth", 2);
889
- u([
890
- w({
888
+ ], f.prototype, "MXEnlargeWaveWidth", 2);
889
+ p([
890
+ m({
891
891
  default: () => J
892
892
  })
893
- ], g.prototype, "LeadNameTextsPorps", 2);
894
- u([
895
- w({
893
+ ], f.prototype, "LeadNameTextsPorps", 2);
894
+ p([
895
+ m({
896
896
  default: 0,
897
897
  type: Number,
898
898
  validator: (e) => typeof e == "number"
899
899
  })
900
- ], g.prototype, "MXEnlargeWaveHeight", 2);
901
- u([
902
- w({
900
+ ], f.prototype, "MXEnlargeWaveHeight", 2);
901
+ p([
902
+ m({
903
903
  required: !0
904
904
  })
905
- ], g.prototype, "gridConfig", 2);
906
- u([
907
- w({
905
+ ], f.prototype, "gridConfig", 2);
906
+ p([
907
+ m({
908
908
  default: 5,
909
909
  type: Number
910
910
  })
911
- ], g.prototype, "cellPoints", 2);
912
- u([
913
- w({
911
+ ], f.prototype, "cellPoints", 2);
912
+ p([
913
+ m({
914
914
  required: !0
915
915
  })
916
- ], g.prototype, "conventionalECGConfig", 2);
917
- u([
918
- w({
916
+ ], f.prototype, "conventionalECGConfig", 2);
917
+ p([
918
+ m({
919
919
  default: () => ({
920
920
  leadHedeWidth: 20,
921
921
  leadHedeColor: "#000",
922
922
  leadHedeLineWidth: 2
923
923
  })
924
924
  })
925
- ], g.prototype, "leadHeadConfig", 2);
926
- u([
927
- w({
925
+ ], f.prototype, "leadHeadConfig", 2);
926
+ p([
927
+ m({
928
928
  required: !0
929
929
  })
930
- ], g.prototype, "formatEcgData", 2);
931
- u([
932
- w({
930
+ ], f.prototype, "formatEcgData", 2);
931
+ p([
932
+ m({
933
933
  required: !0
934
934
  })
935
- ], g.prototype, "leadModel", 2);
936
- u([
937
- w({
935
+ ], f.prototype, "leadModel", 2);
936
+ p([
937
+ m({
938
938
  default: () => ({
939
939
  lineColor: "#000",
940
940
  lineWidth: 1,
@@ -942,22 +942,22 @@ u([
942
942
  fontSize: 15
943
943
  })
944
944
  })
945
- ], g.prototype, "leadConfig", 2);
946
- u([
947
- w({
945
+ ], f.prototype, "leadConfig", 2);
946
+ p([
947
+ m({
948
948
  default: 5
949
949
  })
950
- ], g.prototype, "magnification", 2);
951
- u([
952
- w({
950
+ ], f.prototype, "magnification", 2);
951
+ p([
952
+ m({
953
953
  default: () => ({
954
954
  leadIdxs: [1, 6, 10],
955
955
  leadNames: [1, 6, 10]
956
956
  })
957
957
  })
958
- ], g.prototype, "longLeadConfig", 2);
959
- u([
960
- w({
958
+ ], f.prototype, "longLeadConfig", 2);
959
+ p([
960
+ m({
961
961
  default: () => ({
962
962
  isShow: !1,
963
963
  mode: !1,
@@ -968,9 +968,9 @@ u([
968
968
  telectricalaxis: !1
969
969
  })
970
970
  })
971
- ], g.prototype, "heartFight", 2);
972
- u([
973
- w({
971
+ ], f.prototype, "heartFight", 2);
972
+ p([
973
+ m({
974
974
  default: () => ({
975
975
  isShow: !0,
976
976
  isNativeScroll: !1,
@@ -983,84 +983,84 @@ u([
983
983
  }
984
984
  })
985
985
  })
986
- ], g.prototype, "scrollConfig", 2);
987
- u([
988
- w({
986
+ ], f.prototype, "scrollConfig", 2);
987
+ p([
988
+ m({
989
989
  default: () => ({
990
990
  isShow: !1
991
991
  })
992
992
  })
993
- ], g.prototype, "rulerConfig", 2);
994
- u([
995
- w({
993
+ ], f.prototype, "rulerConfig", 2);
994
+ p([
995
+ m({
996
996
  default: () => ({
997
997
  isShow: !1
998
998
  })
999
999
  })
1000
- ], g.prototype, "measurRulerConfig", 2);
1001
- u([
1002
- w({
1000
+ ], f.prototype, "measurRulerConfig", 2);
1001
+ p([
1002
+ m({
1003
1003
  default: () => ({
1004
1004
  isShow: !1
1005
1005
  })
1006
1006
  })
1007
- ], g.prototype, "paralleRulerConfig", 2);
1008
- u([
1009
- w({
1007
+ ], f.prototype, "paralleRulerConfig", 2);
1008
+ p([
1009
+ m({
1010
1010
  default: () => ({
1011
1011
  isShow: !1
1012
1012
  })
1013
1013
  })
1014
- ], g.prototype, "magnifierRulerConfig", 2);
1015
- u([
1016
- w({
1014
+ ], f.prototype, "magnifierRulerConfig", 2);
1015
+ p([
1016
+ m({
1017
1017
  default: 60
1018
1018
  })
1019
- ], g.prototype, "ventricularRate", 2);
1020
- u([
1021
- w({
1022
- default: S.CompoundWave
1019
+ ], f.prototype, "ventricularRate", 2);
1020
+ p([
1021
+ m({
1022
+ default: A.CompoundWave
1023
1023
  })
1024
- ], g.prototype, "enlargeWaveMode", 2);
1025
- u([
1026
- w({
1024
+ ], f.prototype, "enlargeWaveMode", 2);
1025
+ p([
1026
+ m({
1027
1027
  default: () => []
1028
1028
  })
1029
- ], g.prototype, "enlargeGains", 2);
1030
- u([
1031
- w({
1029
+ ], f.prototype, "enlargeGains", 2);
1030
+ p([
1031
+ m({
1032
1032
  default: () => []
1033
1033
  })
1034
- ], g.prototype, "enlargeSpeeds", 2);
1035
- u([
1036
- w({
1034
+ ], f.prototype, "enlargeSpeeds", 2);
1035
+ p([
1036
+ m({
1037
1037
  default: () => ({
1038
1038
  defaultSelect: 1
1039
1039
  })
1040
1040
  })
1041
- ], g.prototype, "singleModeInfo", 2);
1042
- u([
1043
- w({ default: !0 })
1044
- ], g.prototype, "isMXEnlargeWaveShow", 2);
1045
- u([
1046
- w({
1041
+ ], f.prototype, "singleModeInfo", 2);
1042
+ p([
1043
+ m({ default: !0 })
1044
+ ], f.prototype, "isMXEnlargeWaveShow", 2);
1045
+ p([
1046
+ m({
1047
1047
  default: !1
1048
1048
  })
1049
- ], g.prototype, "isSyncAnalyseValueCheck", 2);
1050
- u([
1049
+ ], f.prototype, "isSyncAnalyseValueCheck", 2);
1050
+ p([
1051
1051
  O(100)
1052
- ], g.prototype, "sceneInsMousemove", 1);
1053
- u([
1052
+ ], f.prototype, "sceneInsMousemove", 1);
1053
+ p([
1054
1054
  O(200)
1055
- ], g.prototype, "nativeScrollFunc", 1);
1056
- u([
1055
+ ], f.prototype, "nativeScrollFunc", 1);
1056
+ p([
1057
1057
  O(200)
1058
- ], g.prototype, "handleScroll", 1);
1059
- g = u([
1058
+ ], f.prototype, "handleScroll", 1);
1059
+ f = p([
1060
1060
  Z({
1061
1061
  name: "Methods"
1062
1062
  })
1063
- ], g);
1063
+ ], f);
1064
1064
  export {
1065
- g as default
1065
+ f as default
1066
1066
  };
@@ -3,7 +3,7 @@ import x from "../../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/
3
3
  import "../../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
4
4
  import { Prop as d } from "../../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Prop.js";
5
5
  import { Watch as m } from "../../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
6
- import P from "../../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js";
6
+ import P from "../../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js";
7
7
  import { getPointIdxForPx as G, LeadNameTexts as B } from "@costy-plus/utils";
8
8
  import { Group as D, init as H, Text as L, Polyline as S, util as F, Polygon as z } from "zrender";
9
9
  import A from "../../BackgroundGrid/index2.js";
@@ -3,7 +3,7 @@ import "vue";
3
3
  import c, { mixins as d } from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
4
4
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
5
5
  import { Watch as o } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
6
- import m from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js";
6
+ import m from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js";
7
7
  import l from "../BackgroundGrid/index2.js";
8
8
  import f from "./method.js";
9
9
  var w = Object.defineProperty, g = Object.getOwnPropertyDescriptor, r = (t, i, n, s) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const u=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const a=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),l=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js"),c=require("../MeasuringRuler/index2.js"),h=require("../MagnifierWave/index.js"),p=require("../ParallelRuler/index2.js"),f=require("../BackgroundGrid/index2.js"),m=require("./method.js");var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,e=(t,r,i,s)=>{for(var o=s>1?void 0:s?g(r,i):r,n=t.length-1,d;n>=0;n--)(d=t[n])&&(o=(s?d(r,i,o):d(o))||o);return s&&o&&v(r,i,o),o};exports.default=class extends u.mixins(m.default){constructor(){super(...arguments),this.repaintTimer=Object.freeze(null)}watchVuescrollConfig(){this.repaint()}watchAnalyseValues(){this.repaint()}watchsingleModeConfig(){this.repaint()}watchWaveConfigs(){this.repaint()}watchWaveLists(){this.repaint(!1)}watchLeadHeadConfig(){var t,r;(t=this.leadHeadGroup)==null||t.removeAll(),(r=this.sceneIns)==null||r.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchLongLeadConfig(){var t;(t=this.sceneIns)==null||t.clear(),this.init()}watchPosStart(){this.registPostStart()}destroyed(){this.repaintTimer&&clearTimeout(this.repaintTimer)}repaint(t=!0){this.repaintTimer&&clearTimeout(this.repaintTimer),this.repaintTimer=setTimeout(()=>{var r,i;t&&((r=this.sceneIns)==null||r.clear(),(i=this.sceneIns)==null||i.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.initCreatedConfig()),this.combinationDrawing(t)},200)}created(){this.initCreatedConfig()}mounted(){this.init()}};e([a.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);e([a.Watch("analyseValues",{deep:!0})],exports.default.prototype,"watchAnalyseValues",1);e([a.Watch("singleModeConfig",{deep:!0})],exports.default.prototype,"watchsingleModeConfig",1);e([a.Watch("waveConfigs",{deep:!0})],exports.default.prototype,"watchWaveConfigs",1);e([a.Watch("waveLists",{deep:!0})],exports.default.prototype,"watchWaveLists",1);e([a.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);e([a.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);e([a.Watch("width")],exports.default.prototype,"watchWidth",1);e([a.Watch("height")],exports.default.prototype,"watchHeight",1);e([a.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);e([a.Watch("posStart")],exports.default.prototype,"watchPosStart",1);exports.default=e([u.default({name:"CommonWaveForm",components:{vueScroll:l.default,MXBackgroundGrid:f.default,MXMeasuringRuler:c.default,MXParallelRuler:p.default,MXMagnifierWave:h.default}})],exports.default);
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const u=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const a=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),l=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js"),c=require("../MeasuringRuler/index2.js"),h=require("../MagnifierWave/index.js"),p=require("../ParallelRuler/index2.js"),f=require("../BackgroundGrid/index2.js"),m=require("./method.js");var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,e=(t,r,i,s)=>{for(var o=s>1?void 0:s?g(r,i):r,n=t.length-1,d;n>=0;n--)(d=t[n])&&(o=(s?d(r,i,o):d(o))||o);return s&&o&&v(r,i,o),o};exports.default=class extends u.mixins(m.default){constructor(){super(...arguments),this.repaintTimer=Object.freeze(null)}watchVuescrollConfig(){this.repaint()}watchAnalyseValues(){this.repaint()}watchsingleModeConfig(){this.repaint()}watchWaveConfigs(){this.repaint()}watchWaveLists(){this.repaint(!1)}watchLeadHeadConfig(){var t,r;(t=this.leadHeadGroup)==null||t.removeAll(),(r=this.sceneIns)==null||r.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchLongLeadConfig(){var t;(t=this.sceneIns)==null||t.clear(),this.init()}watchPosStart(){this.registPostStart()}destroyed(){this.repaintTimer&&clearTimeout(this.repaintTimer)}repaint(t=!0){this.repaintTimer&&clearTimeout(this.repaintTimer),this.repaintTimer=setTimeout(()=>{var r,i;t&&((r=this.sceneIns)==null||r.clear(),(i=this.sceneIns)==null||i.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.initCreatedConfig()),this.combinationDrawing(t)},200)}created(){this.initCreatedConfig()}mounted(){this.init()}};e([a.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);e([a.Watch("analyseValues",{deep:!0})],exports.default.prototype,"watchAnalyseValues",1);e([a.Watch("singleModeConfig",{deep:!0})],exports.default.prototype,"watchsingleModeConfig",1);e([a.Watch("waveConfigs",{deep:!0})],exports.default.prototype,"watchWaveConfigs",1);e([a.Watch("waveLists",{deep:!0})],exports.default.prototype,"watchWaveLists",1);e([a.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);e([a.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);e([a.Watch("width")],exports.default.prototype,"watchWidth",1);e([a.Watch("height")],exports.default.prototype,"watchHeight",1);e([a.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);e([a.Watch("posStart")],exports.default.prototype,"watchPosStart",1);exports.default=e([u.default({name:"CommonWaveForm",components:{vueScroll:l.default,MXBackgroundGrid:f.default,MXMeasuringRuler:c.default,MXParallelRuler:p.default,MXMagnifierWave:h.default}})],exports.default);
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const l=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const o=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),c=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js"),u=require("../BackgroundGrid/index2.js"),h=require("../MeasuringRuler/index2.js"),p=require("../ParallelRuler/index2.js"),v=require("../MagnifierWave/index.js"),f=require("../EnlargeWave/index2.js"),g=require("./method.js");var m=Object.defineProperty,w=Object.getOwnPropertyDescriptor,a=(e,t,s,n)=>{for(var r=n>1?void 0:n?w(t,s):t,i=e.length-1,d;i>=0;i--)(d=e[i])&&(r=(n?d(t,s,r):d(r))||r);return n&&r&&m(t,s,r),r};exports.default=class extends l.mixins(g.default){watchFormatEcgData(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}watchVuescrollConfig(){this.repaint()}watchLeadHeadConfig(){var e,t;(e=this.leadHeadGroup)==null||e.removeAll(),(t=this.sceneIns)==null||t.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchHeartFight(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}watchLongLeadConfig(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}mounted(){this.init()}repaint(){var e,t;(e=this.sceneIns)==null||e.clear(),(t=this.sceneIns)==null||t.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.combinationDrawing()}};a([o.Watch("formatEcgData",{deep:!0})],exports.default.prototype,"watchFormatEcgData",1);a([o.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);a([o.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);a([o.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);a([o.Watch("width")],exports.default.prototype,"watchWidth",1);a([o.Watch("height")],exports.default.prototype,"watchHeight",1);a([o.Watch("singleModeInfo",{deep:!0})],exports.default.prototype,"watchHeartFight",1);a([o.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);exports.default=a([l.default({name:"ECGWaveForm",components:{vueScroll:c.default,MXBackgroundGrid:u.default,MeasuringRuler:h.default,MXParallelRuler:p.default,MXMagnifierWave:v.default,MXEnlargeWave:f.default}})],exports.default);
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const l=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const o=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),c=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js"),u=require("../BackgroundGrid/index2.js"),h=require("../MeasuringRuler/index2.js"),p=require("../ParallelRuler/index2.js"),v=require("../MagnifierWave/index.js"),f=require("../EnlargeWave/index2.js"),g=require("./method.js");var m=Object.defineProperty,w=Object.getOwnPropertyDescriptor,a=(e,t,s,n)=>{for(var r=n>1?void 0:n?w(t,s):t,i=e.length-1,d;i>=0;i--)(d=e[i])&&(r=(n?d(t,s,r):d(r))||r);return n&&r&&m(t,s,r),r};exports.default=class extends l.mixins(g.default){watchFormatEcgData(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}watchVuescrollConfig(){this.repaint()}watchLeadHeadConfig(){var e,t;(e=this.leadHeadGroup)==null||e.removeAll(),(t=this.sceneIns)==null||t.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchHeartFight(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}watchLongLeadConfig(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}mounted(){this.init()}repaint(){var e,t;(e=this.sceneIns)==null||e.clear(),(t=this.sceneIns)==null||t.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.combinationDrawing()}};a([o.Watch("formatEcgData",{deep:!0})],exports.default.prototype,"watchFormatEcgData",1);a([o.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);a([o.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);a([o.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);a([o.Watch("width")],exports.default.prototype,"watchWidth",1);a([o.Watch("height")],exports.default.prototype,"watchHeight",1);a([o.Watch("singleModeInfo",{deep:!0})],exports.default.prototype,"watchHeartFight",1);a([o.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);exports.default=a([l.default({name:"ECGWaveForm",components:{vueScroll:c.default,MXBackgroundGrid:u.default,MeasuringRuler:h.default,MXParallelRuler:p.default,MXMagnifierWave:v.default,MXEnlargeWave:f.default}})],exports.default);
@@ -1 +1 @@
1
- "use strict";var R=Object.defineProperty,z=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var B=(e,t,i)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,C=(e,t)=>{for(var i in t||(t={}))j.call(t,i)&&B(e,i,t[i]);if(O)for(var i of O(t))N.call(t,i)&&B(e,i,t[i]);return e},W=(e,t)=>z(e,k(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),X=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const w=require("../../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"),v=require("@costy-plus/utils"),g=require("zrender"),_=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function $(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const q=_(T),V=$(g);var U=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,u=(e,t,i,s)=>{for(var a=s>1?void 0:s?Y(t,i):t,o=e.length-1,r;o>=0;o--)(r=e[o])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&U(t,i,a),a};exports.default=class extends q.default{constructor(){super(...arguments),this.AssistCtx=Object.freeze(null),this.sceneIns=Object.freeze(null),this.leadHeadGroup=Object.freeze(null),this.splitLineGroup=Object.freeze(null),this.rowAndColwaveFromGroup=Object.freeze(null),this.singleWaveFromGroup=Object.freeze(null),this.addwaveFromGroup=Object.freeze(null),this.leadHeadNameGroup=Object.freeze(null),this.leadHeadOffAndDelGroup=Object.freeze(null),this.rulerGroup=Object.freeze(null),this.arrowGroup=Object.freeze(null),this.heardBeatLineGroup=Object.freeze(null),this.pacingGroup=Object.freeze(null),this.bottomAreaHeight=Object.freeze(55),this.dataTotalTimes=Object.freeze(0),this.totalRows=Object.freeze(0),this.rulerStep=Object.freeze(0),this.drawLoopArrowStartPosIdx=Object.freeze(0),this.dbClickWaveFromTime=Object.freeze(0),this.currentHeardBeat={heardBeat:null,ele:null},this.loopArrowY=Object.freeze({add:0,rowAndCol:0}),this.fontFamily=Object.freeze("\u5FAE\u8F6F\u96C5\u9ED1"),this.ruleH=Object.freeze(40),this.bottomPacH=Object.freeze(20),this.drawBottomPacH=Object.freeze(this.bottomPacH+40),this.pacingh=Object.freeze(12),this.pacingPFontSize=Object.freeze(14),this.splitBlockHeight=0,this.splitBlockHeight2=0,this.splitPoint=0,this.slidingWindowInfo=Object.freeze({}),this.addSlidingWindowInfo=Object.freeze({}),this.highestAndLowestPoint=Object.freeze({Data:{maxPoints:0,minPoints:0},ComplexData:{maxPoints:0,minPoints:0}}),this.drawArea=Object.freeze({width:0,height:0}),this.vuescrollWH={width:0,height:0},this.waveDataCopy=[],this.addWaveDataCopy=[],this.singleWaveDataCopy=[],this.leadNameList=[],this.activeLeadIdx=-1,this.activeLeadAnalyseValue=null,this.sceneIsMouseDown=Object.freeze(!1),this.sceneIsMouseDownX=Object.freeze(0),this.sceneIsMouseDownY=Object.freeze(0),this.sceneIsStartX=Object.freeze(0),this.sceneIsStartY=Object.freeze(0),this.sceneIsMoveUpDown=Object.freeze(!1),this.isShowEnlargeWave=!1,this.sceneFirstDistance=Object.freeze(0),this.sceneMagnification=1,this.rulerHistorySlidIdxs=Object.freeze(0)}get canvasContainer(){var e;return{width:this.width,height:this.height-(this.scrollConfig.isShow&&parseInt(`${(e=this.scrollConfig.bar)==null?void 0:e.size}`)||0)||0}}get waveFromData(){var e,t,i;return((e=this.formatEcgData)==null?void 0:e.analysisValueMode)===v.AnalysisMode.CompoundWave?((t=this.formatEcgData)==null?void 0:t.processedData.handleData.ComplexData)||[[]]:((i=this.formatEcgData)==null?void 0:i.processedData.handleData.Data)||[[]]}get isSingleMode(){return this.leadModel.column===1&&this.leadModel.line===1}get MXEnlargeWaveWH(){let e=this.width,t=this.height;return this.MXEnlargeWaveWidth&&(e=this.MXEnlargeWaveWidth),this.MXEnlargeWaveHeight&&(t=this.MXEnlargeWaveHeight),{width:e,height:t}}destroyed(){var e,t,i,s,a,o,r,l,n,h,d,p;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(),(r=this.leadHeadOffAndDelGroup)==null||r.removeAll(),(l=this.rulerGroup)==null||l.removeAll(),(n=this.arrowGroup)==null||n.removeAll(),(h=this.heardBeatLineGroup)==null||h.removeAll(),(d=this.pacingGroup)==null||d.removeAll(),(p=this.sceneIns)==null||p.dispose()}init(){var e;this.initWaveFormPeer(),this.combinationDrawing(),(e=this.formatEcgData)!=null&&e.processedData.otherParams.PosStart&&(this.scrollConfig.isShow?this.$nextTick(()=>{var t,i,s,a,o;this.scrollConfig.isNativeScroll?(s=this.$refs[this.prefixId+"nativeScroll"])==null||s.scrollBy({left:(((t=this.formatEcgData)==null?void 0:t.processedData.otherParams.PosStart)||0)*(((i=this.formatEcgData)==null?void 0:i.step)||0)*this.sceneMagnification,top:0}):this.$refs[this.prefixId+"vueScroll"].scrollTo({dx:(((a=this.formatEcgData)==null?void 0:a.processedData.otherParams.PosStart)||0)*(((o=this.formatEcgData)==null?void 0:o.step)||0)*this.sceneMagnification})}):(this.scrollWaveFrom(this.formatEcgData.processedData.otherParams.PosStart),this.scrollRuler(this.formatEcgData.processedData.otherParams.PosStart),this.scrollArrow(this.formatEcgData.processedData.otherParams.PosStart)))}initWaveFormPeer(){var i;(i=this.sceneIns)==null||i.dispose(),this.AssistCtx=null;const e=document.getElementById(`${this.prefixId}wave-from-box`);this.sceneIns=V.init(e,{width:this.canvasContainer.width,height:this.canvasContainer.height,devicePixelRatio:2});const t=document.getElementById(`${this.prefixId}MXGrid`);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)}sceneInsEventOff(){var e,t,i;(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)}combinationDrawing(){this.initConfig(),this.drawLeadHead(),this.drawColSplitLine(),this.initSlidingWindowInfo(),this.drawPacing(),this.drawRulerNotes(),this.drawWaveFrom()}initConfig(){var t,i,s,a,o,r,l,n,h,d,p;this.rowAndColwaveFromGroup=new g.Group({name:"rowAndColwaveFrom"}),this.singleWaveFromGroup=new g.Group({name:"singleWaveFrom"}),this.addwaveFromGroup=new g.Group({name:"addwaveFrom"}),this.leadHeadGroup=new g.Group({name:"leadHead"}),this.splitLineGroup=new g.Group({name:"splitLine"}),this.leadHeadNameGroup=new g.Group({name:"leadHeadName"}),this.leadHeadOffAndDelGroup=new g.Group({name:"leadHeadOffAndDel"}),this.rulerGroup=new g.Group({name:"ruler"}),this.arrowGroup=new g.Group({name:"arrowLoop"}),this.heardBeatLineGroup=new g.Group({name:"heardBeatLine"}),this.pacingGroup=new g.Group({name:"pacing"}),(this.leadModel.name==="12*1"||this.leadModel.name==="18*1"||this.leadModel.name==="15*1"||this.leadModel.name==="16*1")&&(this.sceneMagnification=.8),this.vuescrollWH.width=this.width,this.vuescrollWH.height=this.height;let e=this.canvasContainer.width;if(((i=(t=this.conventionalECGConfig)==null?void 0:t.ecgReviewSetting)==null?void 0:i.ecgareawidth)==="1"){const m=v.getPrintLengthToPx(((s=this.formatEcgData)==null?void 0:s.processedData.otherParams.SampleRate)||0)+this.leadHeadConfig.leadHedeWidth;m<=e&&(e=m)}else this.leadModel.isContinuous&&!this.isSingleMode&&(((a=this.formatEcgData)==null?void 0:a.dataPxLen)||0)<e-this.leadHeadConfig.leadHedeWidth&&(e=(((o=this.formatEcgData)==null?void 0:o.dataPxLen)||0)+this.leadHeadConfig.leadHedeWidth);if(this.drawArea={width:e,height:this.canvasContainer.height-this.bottomAreaHeight},this.slidingWindowInfo={points:0,startInd:0,endInd:0},this.addSlidingWindowInfo={points:0,startInd:0,endInd:0},this.loopArrowY={add:0,rowAndCol:0},this.currentHeardBeat={heardBeat:null,ele:null},this.leadNameList=((r=this.formatEcgData)==null?void 0:r.processedData.otherParams.LeadName)||[],this.totalRows=this.leadModel.line+this.leadModel.add||1,this.highestAndLowestPoint=(l=this.formatEcgData)==null?void 0:l.calcHighestAndLowestPoint(),this.isSingleMode)this.splitBlockHeight=(((n=this.formatEcgData)==null?void 0:n.analysisValueMode)===v.AnalysisMode.CompoundWave?Math.abs(this.highestAndLowestPoint.ComplexData.maxPoints)+Math.abs(this.highestAndLowestPoint.ComplexData.minPoints):Math.abs(this.highestAndLowestPoint.Data.maxPoints)+Math.abs(this.highestAndLowestPoint.Data.minPoints))+22,this.splitBlockHeight>this.drawArea.height&&(this.splitBlockHeight=this.drawArea.height/6,this.splitBlockHeight2=this.drawArea.height/6);else{let m=this.drawArea.height;this.leadModel.isShowPacing&&(m=this.drawArea.height-this.drawBottomPacH),this.splitBlockHeight=m/this.totalRows,this.splitBlockHeight2=m/this.totalRows}this.dataTotalTimes=v.getDataLenTimes(this.waveFromData[0].length||0,((h=this.formatEcgData)==null?void 0:h.processedData.otherParams.SampleRate)||0),this.rulerStep=(((d=this.formatEcgData)==null?void 0:d.step)||1)*(((p=this.formatEcgData)==null?void 0:p.processedData.otherParams.SampleRate)||1)/(this.gridConfig.cellMg*2+2)}isLeadOff(e){var t;return!!(((t=this.formatEcgData)==null?void 0:t.processedData.otherParams.LeadOff)||[]).includes(e)}isLeadDel(e){var t;return!!(((t=this.formatEcgData)==null?void 0:t.processedData.otherParams.LeadDelete)||[]).includes(e)}onDbClickWaveFrom(e,t){console.log("onDbClickWaveFrom",e);const i=Date.now(),s=()=>{var p,m,f,D;const a=e.target.name.split("_");this.activeLeadIdx=+a[0];const o=+a[1];let r=0,l=0;t==="single"?(r=e.offsetX-this.singleWaveDataCopy[o].pos[0],l=this.singleWaveDataCopy[o].startInd):t==="rowAndCol"?(r=e.offsetX-this.waveDataCopy[o].pos[0],l=this.waveDataCopy[o].startInd||0):t==="add"&&(r=e.offsetX-this.addWaveDataCopy[o].pos[0],l=this.addWaveDataCopy[o].startInd||0);let n=v.getPointIdxForPx(r,(((p=this.formatEcgData)==null?void 0:p.step)||1)*this.sceneMagnification);n+=l;const h=((m=this.formatEcgData)==null?void 0:m.processedData.otherParams.AnalyseValue)||[];let d=null;if(this.enlargeWaveMode===v.AnalysisMode.SelectedHeartbeat){if(n<=h[1].KeyPosByBeat.Tend+.1*(((f=this.formatEcgData)==null?void 0:f.processedData.otherParams.SampleRate)||0))d=h[1];else for(let y=1;y<h.length;y++)if(n>h[y-1].KeyPosByBeat.Tend+1&&n<h[y].KeyPosByBeat.Tend+.1*(((D=this.formatEcgData)==null?void 0:D.processedData.otherParams.SampleRate)||0)){d=h[y];break}}else d=h[0];!d||(this.activeLeadAnalyseValue=W(C({},d),{BeatCount:h.length-1}),d=null,this.$emit("notifyActiveEnlargr"),this.isShowEnlargeWave=!0)};i-this.dbClickWaveFromTime<400?(this.dbClickWaveFromTime=0,s()):this.dbClickWaveFromTime=i}sceneInsMousemove(e){var t,i,s,a,o,r,l,n,h,d,p,m,f;if(e.event.preventDefault(),e.event.stopPropagation(),this.sceneIsMouseDown){if(!e.event.touches||e.event.touches.length===1){const D=e.offsetY-this.sceneIsStartY,y=e.offsetX-this.sceneIsStartX;Math.abs(D)>Math.abs(y)?(this.sceneIsMoveUpDown=!0,this.moveUpAndDown(e.offsetY-this.sceneIsMouseDownY),this.sceneIsMouseDownY=e.offsetY):(this.sceneIsMoveUpDown=!1,this.scrollConfig.isNativeScroll?(t=this.$refs[this.prefixId+"nativeScroll"])==null||t.scrollBy({left:-(e.offsetX-this.sceneIsMouseDownX),top:0}):this.$refs[this.prefixId+"vueScroll"].scrollBy({dx:-(e.offsetX-this.sceneIsMouseDownX)}),this.sceneIsMouseDownX=e.offsetX)}else if(this.supportTwoFingerZoom&&e.event.touches.length===2){const D=v.getDistance({x:e.event.touches[0].pageX,y:e.event.touches[0].pageY},{x:e.event.touches[1].pageX,y:e.event.touches[1].pageY});this.sceneFirstDistance===0&&(this.sceneFirstDistance=D),D<this.sceneFirstDistance?(this.sceneMagnification-=this.zoomStep,this.sceneMagnification<.7&&(this.sceneMagnification=.7)):this.sceneMagnification+=this.zoomStep,this.splitBlockHeight=this.splitBlockHeight2*this.sceneMagnification,(i=this.leadHeadNameGroup)==null||i.removeAll(),(s=this.leadHeadOffAndDelGroup)==null||s.removeAll(),(a=this.heardBeatLineGroup)==null||a.removeAll(),(o=this.rulerGroup)==null||o.removeAll(),(r=this.arrowGroup)==null||r.removeAll(),(l=this.splitLineGroup)==null||l.removeAll(),(n=this.sceneIns)==null||n.remove(this.splitLineGroup),(h=this.rowAndColwaveFromGroup)==null||h.removeAll(),(d=this.singleWaveFromGroup)==null||d.removeAll(),(p=this.addwaveFromGroup)==null||p.removeAll(),(m=this.leadHeadGroup)==null||m.removeAll(),(f=this.pacingGroup)==null||f.removeAll(),this.drawWaveFrom(),this.sceneFirstDistance=D,this.zoomWave()}}}sceneInsMousemoveTest(e){this.sceneMagnification=e,this.splitBlockHeight=this.splitBlockHeight2*this.sceneMagnification,this.zoomWave()}moveUpAndDown(e){var t,i,s,a,o,r,l,n,h,d;this.isSingleMode?(this.singleWaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)+this.singleWaveFromGroup.getBoundingRect().height,this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e)+this.arrowGroup.getBoundingRect().height,this.singleWaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e),this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e)):(this.rowAndColwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)+this.rowAndColwaveFromGroup.getBoundingRect().height,this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e)+this.arrowGroup.getBoundingRect().height,this.addwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)+this.addwaveFromGroup.getBoundingRect().height,this.rowAndColwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e),this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e),this.addwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)),this.isSingleMode?(t=this.singleWaveFromGroup)==null||t.attr({y:this.singleWaveFromGroup.y+e}):((i=this.rowAndColwaveFromGroup)==null||i.attr({y:this.rowAndColwaveFromGroup.y+e}),(s=this.leadHeadGroup)==null||s.attr({y:this.leadHeadGroup.y+e}),(a=this.addwaveFromGroup)==null||a.attr({y:this.addwaveFromGroup.y+e}),(o=this.splitLineGroup)==null||o.attr({y:this.splitLineGroup.y+e})),(r=this.leadHeadNameGroup)==null||r.attr({y:this.leadHeadNameGroup.y+e}),(l=this.leadHeadOffAndDelGroup)==null||l.attr({y:this.leadHeadOffAndDelGroup.y+e}),(n=this.arrowGroup)==null||n.attr({y:this.arrowGroup.y+e}),(h=this.heardBeatLineGroup)==null||h.attr({y:this.heardBeatLineGroup.y+e}),this.leadModel.isShowPacing&&((d=this.pacingGroup)==null||d.attr({y:this.pacingGroup.y+e}))}zoomWave(){var s,a,o,r,l;this.scrollConfig.isShow&&!this.isSingleMode&&(this.vuescrollWH.width=this.canvasContainer.width+(((s=this.formatEcgData)==null?void 0:s.dataPxLen)||0)*this.sceneMagnification-this.splitPoint);const e=(((a=this.formatEcgData)==null?void 0:a.step)||0)*this.sceneMagnification,t=Math.ceil(this.splitPoint/e);this.slidingWindowInfo.points=t;const i=Math.ceil((this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/e);this.addSlidingWindowInfo.points=i,this.drawLeadHead(),this.drawColSplitLine(),this.isSingleMode?(this.slidingWindowInfo.endInd=t,this.addWaveDataCopy=[],this.waveDataCopy=[],this.createSingleWaveFrom(),(o=this.sceneIns)==null||o.add(this.singleWaveFromGroup)):this.scrollWaveFrom(this.rulerHistorySlidIdxs),this.scrollRuler(this.rulerHistorySlidIdxs),this.scrollArrow(this.rulerHistorySlidIdxs),(r=this.leadHeadNameGroup)==null||r.eachChild((n,h)=>{n.attr({style:W(C({},n.style),{y:n.style.y*this.sceneMagnification})})}),(l=this.leadHeadOffAndDelGroup)==null||l.eachChild((n,h)=>{n.attr({style:W(C({},n.style),{y:n.style.y*this.sceneMagnification})})})}sceneInsMouseDown(e){e.event.preventDefault(),e.event.stopPropagation(),this.sceneIsMouseDown=!0,!e.event.touches||e.event.touches.length===1?(this.sceneIsMouseDownX=e.offsetX,this.sceneIsMouseDownY=e.offsetY,this.sceneIsStartX=e.offsetX,this.sceneIsStartY=e.offsetY):e.event.touches.length===2&&(this.sceneFirstDistance=v.getDistance({x:e.event.touches[0].pageX,y:e.event.touches[0].pageY},{x:e.event.touches[1].pageX,y:e.event.touches[1].pageY}))}sceneInsMouseUp(e){e.event.preventDefault(),e.event.stopPropagation(),this.sceneIsMouseDown=!1,this.sceneIsMoveUpDown=!1}drawPacing(){var i,s,a,o,r,l,n;if(!this.leadModel.isShowPacing||!((s=(i=this.formatEcgData)==null?void 0:i.processedData.otherParams.PacingData)!=null&&s.length))return;(a=this.pacingGroup)==null||a.removeAll(),(o=this.sceneIns)==null||o.remove(this.pacingGroup);const e=this.leadHeadConfig.leadHedeWidth,t=this.canvasContainer.height-this.drawBottomPacH;(r=this.pacingGroup)==null||r.add(new g.Text({cursor:"",style:{x:e,y:t,text:"P",fontSize:this.pacingPFontSize,fill:this.leadConfig.lineColor,fontFamily:this.fontFamily}})),(l=this.pacingGroup)==null||l.add(new g.Polyline({cursor:"",name:"0_0",shape:{points:this.getPacinfPoints(e,t)},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}})),(n=this.sceneIns)==null||n.add(this.pacingGroup)}getPacinfPoints(e,t){var i;return(((i=this.formatEcgData)==null?void 0:i.processedData.otherParams.PacingData)||[]).slice(this.addSlidingWindowInfo.startInd,this.addSlidingWindowInfo.endInd).map((s,a)=>{var o;return[e+a*(((o=this.formatEcgData)==null?void 0:o.step)||0)*this.sceneMagnification,(s===1?t-this.pacingh:t)+this.pacingPFontSize]})}createLeadHead(e,t,i){var o;const s=this.leadHeadConfig.leadHedeWidth/4;let a=(((o=this.formatEcgData)==null?void 0:o.sens)||0)*this.sceneMagnification;return a=i?a/2:a,new g.Polyline({cursor:"",shape:{points:[[0+e,0+t],[s+e,0+t],[s+e,-a+t],[3*s+e,-a+t],[3*s+e,0+t],[4*s+e,0+t]]},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}})}creatSplitLine(e,t,i){var s,a;return new g.Line({cursor:"",shape:{x1:0+e,y1:0+t,x2:0+e,y2:(i?(((s=this.formatEcgData)==null?void 0:s.sens)||0)*this.sceneMagnification/2:(((a=this.formatEcgData)==null?void 0:a.sens)||0)*this.sceneMagnification)+t},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}})}drawLeadHead(){var i,s,a,o,r,l;(i=this.leadHeadGroup)==null||i.removeAll(),(s=this.sceneIns)==null||s.remove(this.leadHeadGroup);let e=0,t=!1;for(let n=1;n<=this.totalRows;n++)e=0,t=!1,n<=this.leadModel.line?e=(((a=this.formatEcgData)==null?void 0:a.processedData.otherParams.LeadName)||[])[n-1]||0:n>this.leadModel.line&&n-this.leadModel.line<=this.leadModel.add&&(e=this.longLeadConfig.leadNames[n-this.leadModel.line-1]),((o=this.formatEcgData)==null?void 0:o.gainName)==="\u80F8\u5BFC\u51CF\u534A"&&/^V\w+/.test(this.LeadNameTextsPorps[e])&&(t=!0),(r=this.leadHeadGroup)==null||r.add(this.createLeadHead(0,n*this.splitBlockHeight,t));(l=this.sceneIns)==null||l.add(this.leadHeadGroup)}drawColSplitLine(){var a,o,r,l,n,h,d,p,m,f,D,y,M;(a=this.splitLineGroup)==null||a.removeAll(),(o=this.sceneIns)==null||o.remove(this.splitLineGroup);const e=(this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/this.leadModel.column;if(this.splitPoint=e,this.isSingleMode){const P=v.getDataLenTimes(Math.ceil(this.splitPoint/((((r=this.formatEcgData)==null?void 0:r.step)||1)*this.sceneMagnification))||0,((l=this.formatEcgData)==null?void 0:l.processedData.otherParams.SampleRate)||0),I=parseInt(`${P/1e3%60}`,10);this.splitPoint=I*(((n=this.formatEcgData)==null?void 0:n.processedData.otherParams.SampleRate)||0)*(((h=this.formatEcgData)==null?void 0:h.step)||0)*this.sceneMagnification}let t=0,i=0,s=0;for(let P=1;P<=this.leadModel.column-1;P++){t=P*e+this.leadHeadConfig.leadHedeWidth,i=P*this.leadModel.line;for(let I=1;I<=this.leadModel.line&&(s=(((d=this.formatEcgData)==null?void 0:d.processedData.otherParams.LeadName)||[])[I-1+i],s!==void 0);I++)((p=this.formatEcgData)==null?void 0:p.gainName)==="\u80F8\u5BFC\u51CF\u534A"&&/^V\w+/.test(this.LeadNameTextsPorps[s])?(f=this.splitLineGroup)==null||f.add(this.creatSplitLine(t,I*this.splitBlockHeight-(((m=this.formatEcgData)==null?void 0:m.sens)||0)*this.sceneMagnification/2*.5,!0)):(y=this.splitLineGroup)==null||y.add(this.creatSplitLine(t,I*this.splitBlockHeight-(((D=this.formatEcgData)==null?void 0:D.sens)||0)*this.sceneMagnification*.5))}(M=this.sceneIns)==null||M.add(this.splitLineGroup)}initSlidingWindowInfo(){var s,a;const e=(((s=this.formatEcgData)==null?void 0:s.step)||0)*this.sceneMagnification,t=Math.ceil(this.splitPoint/e);this.slidingWindowInfo={points:t,startInd:0,endInd:t},this.scrollConfig.isShow&&!this.isSingleMode&&(this.vuescrollWH.width=this.canvasContainer.width+(((a=this.formatEcgData)==null?void 0:a.dataPxLen)||0)*this.sceneMagnification-this.splitPoint);const i=Math.ceil((this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/e);this.addSlidingWindowInfo={points:i,startInd:0,endInd:i}}getRednerSinglePoints(){let e=0,t=0;const i=this.waveFromData[this.singleModeInfo.defaultSelect]||[];let s=this.slidingWindowInfo.startInd||0,a=this.slidingWindowInfo.endInd||0;const o=[],r=Math.ceil(i.length/(this.slidingWindowInfo.points||1));for(let l=0;l<1;l++){e=l*this.splitPoint+this.leadHeadConfig.leadHedeWidth,t=0;for(let n=1;n<=r;n++)t=n*this.splitBlockHeight,n>1&&(t*=.8,s=a,a=s+(this.slidingWindowInfo.points||0)),n===1&&(this.loopArrowY.rowAndCol=t),o.push({pos:[e,t],startInd:s,endInd:a,data:i.slice(s,a).map((h,d)=>{var p;return[d*(((p=this.formatEcgData)==null?void 0:p.step)||0)*this.sceneMagnification,-h*this.sceneMagnification]})})}return o}getRednerPoints(){let e=0,t=0,i=0,s=[],a=this.slidingWindowInfo.startInd||0,o=this.slidingWindowInfo.endInd||0;const r=[];for(let l=0;l<this.leadModel.column;l++){e=l*this.splitPoint+this.leadHeadConfig.leadHedeWidth,t=0,this.leadModel.isContinuous&&l>0&&(a=o,o=a+(this.slidingWindowInfo.points||0));for(let n=1;n<=this.leadModel.line&&(t=n*this.splitBlockHeight,!(i>(this.waveFromData||[]).length-1));n++)s=this.waveFromData[i]||[],i++,n===1&&(this.loopArrowY.rowAndCol=t),r.push({pos:[e,t],startInd:a,endInd:o,data:s.slice(a,o).map((h,d)=>{var p;return[d*(((p=this.formatEcgData)==null?void 0:p.step)||0)*this.sceneMagnification,-h*this.sceneMagnification]})})}return r}getAddRednerPoints(){const e=[],t=this.leadHeadConfig.leadHedeWidth;let i=0,s=0,a=[];for(let o=0;o<this.leadModel.add;o++)s=this.longLeadConfig.leadIdxs[o],i=(o+this.leadModel.line+1)*this.splitBlockHeight,a=this.waveFromData[s]||[],o===0&&(this.loopArrowY.add=i),e.push({pos:[t,i],startInd:this.addSlidingWindowInfo.startInd||0,endInd:this.addSlidingWindowInfo.endInd||0,data:a.slice(this.addSlidingWindowInfo.startInd,this.addSlidingWindowInfo.endInd).map((r,l)=>{var n;return[l*(((n=this.formatEcgData)==null?void 0:n.step)||0)*this.sceneMagnification,-r*this.sceneMagnification]})});return e}createSingleWaveFrom(){var r,l,n,h,d,p,m;(r=this.singleWaveFromGroup)==null||r.removeAll();const e=(((l=this.formatEcgData)==null?void 0:l.processedData.otherParams.LeadName)||[])[this.singleModeInfo.defaultSelect]||0;let t=this.getRednerSinglePoints(),i=v.getDataLenTimes(this.slidingWindowInfo.points||0,((n=this.formatEcgData)==null?void 0:n.processedData.otherParams.SampleRate)||0);const s=i;let a=0,o=0;for(let f=0;f<t.length&&!(t[f].pos[1]>this.drawArea.height+this.bottomAreaHeight);f++)this.isLeadDel(e)||(a=Math.floor(i/1e3/60),o=Math.floor(i/1e3%60),a=o===60?a+=1:a,a=a===0?"00":a<10?`0${a}`:a,o=o===0||o===60?"00":o<10?`0${o}`:o,(h=this.singleWaveFromGroup)==null||h.add(new g.Polyline({cursor:"",name:this.singleModeInfo.defaultSelect+"_"+f,shape:{points:t[f].data.map(([D,y])=>[D+t[f].pos[0],y+t[f].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:D=>{this.onDbClickWaveFrom(D,"single")}})),(p=this.singleWaveFromGroup)==null||p.add(new g.Text({cursor:"",style:{x:t[f].pos[0],y:t[f].pos[1]-(((d=this.formatEcgData)==null?void 0:d.sens)||0)*this.sceneMagnification/2,text:f===0?"00:00 \u5FC3\u7387":`${a}:${o} \u5FC3\u7387`,fontWeight:"bold",fontSize:14,fill:"#FF0080",fontFamily:this.fontFamily}})),f>0&&(i+=s));this.createLeadName(e,t[0].pos[0]-10,t[0].pos[1]+10),this.createLeadOffAndDel(e,t[0].pos[0]-5,t[0].pos[1]-(((m=this.formatEcgData)==null?void 0:m.sens)||0)*this.sceneMagnification/2-15),this.singleWaveDataCopy=t,t=null}createAddWaveFrom(){var t,i;console.time("createAddWaveFrom");let e=this.getAddRednerPoints();for(let s=0;s<e.length;s++)this.isLeadDel(this.longLeadConfig.leadIdxs[s])||((t=this.addwaveFromGroup)==null||t.add(new g.Polyline({cursor:"",name:this.longLeadConfig.leadIdxs[s]+"_"+s,shape:{points:e[s].data.map(([a,o])=>[a+e[s].pos[0],o+e[s].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:a=>{this.onDbClickWaveFrom(a,"add")}})),this.createLeadName(this.longLeadConfig.leadNames[s],e[s].pos[0],e[s].pos[1]-15,!0),this.createLeadOffAndDel(this.longLeadConfig.leadIdxs[s],e[s].pos[0]-5,e[s].pos[1]-(((i=this.formatEcgData)==null?void 0:i.sens)||0)*this.sceneMagnification/2-15));console.timeEnd("createAddWaveFrom"),this.addWaveDataCopy=e,e=null}createRowAndColWaveFrom(){var i,s,a,o,r,l;console.time("createRowAndColWaveFrom"),(i=this.rowAndColwaveFromGroup)==null||i.removeAll();let e=this.getRednerPoints(),t=0;for(let n=0;n<e.length;n++)t=(((s=this.formatEcgData)==null?void 0:s.processedData.otherParams.LeadName)||[])[n]||0,this.isLeadDel(t)||(a=this.rowAndColwaveFromGroup)==null||a.add(new g.Polyline({cursor:"",name:n+"_"+n,shape:{points:e[n].data.map(([h,d])=>[h+e[n].pos[0],d+e[n].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:h=>{this.onDbClickWaveFrom(h,"rowAndCol")}})),n<this.leadModel.line?(this.createLeadName(t,e[n].pos[0],e[n].pos[1]-15),this.createLeadOffAndDel(t,e[n].pos[0]-5,e[n].pos[1]-(((o=this.formatEcgData)==null?void 0:o.sens)||0)*this.sceneMagnification/2-15)):(this.createLeadName(t,e[n].pos[0]+5,e[n].pos[1]-(((r=this.formatEcgData)==null?void 0:r.sens)||0)*this.sceneMagnification/2),this.createLeadOffAndDel(t,e[n].pos[0]-5,e[n].pos[1]-(((l=this.formatEcgData)==null?void 0:l.sens)||0)*this.sceneMagnification/2+9));this.waveDataCopy=e,e=null}createLeadName(e,t,i,s=!1){var a;(a=this.leadHeadNameGroup)==null||a.add(new g.Text({style:{x:t,y:i,text:this.LeadNameTextsPorps[e],fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily},oncontextmenu:o=>{o.event.preventDefault(),this.$emit("notiifyLeadName",{event:W(C({},o),{name:this.LeadNameTextsPorps[e],idx:e}),isAdd:s})},onclick:o=>{this.$emit("notiifyLeadName",{event:W(C({},o),{name:this.LeadNameTextsPorps[e],idx:e}),isAdd:s})}}))}createLeadOffAndDel(e,t,i){var s;(this.isLeadOff(e)||this.isLeadDel(e))&&((s=this.leadHeadOffAndDelGroup)==null||s.add(new g.Text({cursor:"",style:{x:t,y:i,text:"X",fontWeight:"bold",fontSize:18,fill:"#E42c03",fontFamily:this.fontFamily}})))}drawRulerNotes(){var s,a,o,r,l,n;if(!this.rulerConfig.isShow)return;const e={fill:"#FF0080",fontSize:13,fontFamily:this.fontFamily},t=new g.Text({cursor:"",style:C({text:"(s)",x:this.leadHeadConfig.leadHedeWidth/2-8,y:this.canvasContainer.height-25},e)}),i=new g.Text({style:C({text:`${((s=this.formatEcgData)==null?void 0:s.gainName)==="\u80F8\u5BFC\u51CF\u534A"?(a=this.formatEcgData)==null?void 0:a.gainName:`${(o=this.formatEcgData)==null?void 0:o.gain}mm/mV`} ${(r=this.formatEcgData)==null?void 0:r.speed}mm/s`,x:this.leadHeadConfig.leadHedeWidth/2+20,y:this.canvasContainer.height-this.ruleH},e)});(l=this.sceneIns)==null||l.add(i),(n=this.sceneIns)==null||n.add(t)}drawRuler(e=0){var o,r,l,n,h;if(!this.rulerConfig.isShow)return;const t=this.dataTotalTimes/1e3;let i=this.leadHeadConfig.leadHedeWidth,s=0,a=t;if(this.leadModel.isContinuous)a=t*5;else if(!this.leadModel.add&&((o=this.formatEcgData)==null?void 0:o.step)){const d=v.getPointIdxForPx(this.splitPoint,this.formatEcgData.step*this.sceneMagnification),p=v.getDataLenTimes(d,((r=this.formatEcgData)==null?void 0:r.processedData.otherParams.SampleRate)||0)/1e3;a=e+p}for(let d=e;d<=a;d=+(d+.1).toFixed(1))d!==e&&(i+=this.rulerStep*this.sceneMagnification),d%1===0?(s=this.canvasContainer.height-10,(l=this.rulerGroup)==null||l.add(new g.Text({cursor:"",style:{x:i,y:s-15,text:d+"",fontSize:13,fontFamily:this.fontFamily,fill:"#FF0080"}}))):s=this.canvasContainer.height-5,(n=this.rulerGroup)==null||n.add(new g.Line({cursor:"",shape:{x1:i,y1:s,x2:i,y2:this.canvasContainer.height},style:{stroke:"#FF0080",lineWidth:2}}));(h=this.sceneIns)==null||h.add(this.rulerGroup)}drawWaveFrom(){var e,t,i;this.isSingleMode?(this.addWaveDataCopy=[],this.waveDataCopy=[],this.createSingleWaveFrom(),(e=this.sceneIns)==null||e.add(this.singleWaveFromGroup)):(this.singleWaveDataCopy=[],this.createAddWaveFrom(),this.createRowAndColWaveFrom(),(t=this.sceneIns)==null||t.add(this.rowAndColwaveFromGroup),(i=this.sceneIns)==null||i.add(this.addwaveFromGroup)),this.drawLeadHeadNameAndOffOrDel(),this.drawRuler(),this.drawLoopArrow()}drawLeadHeadNameAndOffOrDel(){var e,t;(e=this.sceneIns)==null||e.add(this.leadHeadNameGroup),(t=this.sceneIns)==null||t.add(this.leadHeadOffAndDelGroup)}drawLoopArrow(e=0){var l,n,h,d,p,m,f,D,y,M,P,I,A,S,L,x,b;if(this.drawLoopArrowStartPosIdx=e,!this.heartFight.isShow)return;this.heartFight.mode&&this.currentHeardBeat.heardBeat===null&&(this.currentHeardBeat.heardBeat=((l=this.formatEcgData)==null?void 0:l.heartBeatPosition[this.heartFight.defaultSelect])||null,this.drawHeardBeatLine());let t=0,i=0;this.leadModel.add?i=this.loopArrowY.add-(((n=this.formatEcgData)==null?void 0:n.sens)||0)*this.sceneMagnification-this.splitBlockHeight/3.5:i=20;let s=0,a=0;const o={fontSize:12,fill:"red",fontFamily:this.fontFamily};let r=0;for(let F=0;F<(((h=this.formatEcgData)==null?void 0:h.heartBeatPosition)||[]).length;F++){const c=(d=this.formatEcgData)==null?void 0:d.heartBeatPosition[F];if(r=((c==null?void 0:c.position)||0)-e,!(e>((c==null?void 0:c.position)||0))&&!(!this.leadModel.isContinuous&&!this.leadModel.add&&r>(this.slidingWindowInfo.points||0))&&!(this.isSingleMode&&this.singleModeInfo&&r>(this.slidingWindowInfo.points||0))){if(((c==null?void 0:c.position)||0)-this.addSlidingWindowInfo.startInd>(this.addSlidingWindowInfo.points||0))break;t=r*(((p=this.formatEcgData)==null?void 0:p.step)||0)*this.sceneMagnification+this.leadHeadConfig.leadHedeWidth-9.5,a=0,(D=this.arrowGroup)==null||D.add(new g.Polygon({name:"arrow_box",shape:{points:[[4+t,0+i],[15+t,0+i],[15+t,10+i],[19+t,10+i],[9.5+t,22+i],[0+t,10+i],[4+t,10+i],[4+t,0+i]]},style:{fill:((f=(m=this.currentHeardBeat)==null?void 0:m.heardBeat)==null?void 0:f.index)===(c==null?void 0:c.index)?"blue":"#ccc"},onclick:H=>{var E;!this.heartFight.mode||(H.target.attr({style:{fill:"blue"}}),(E=this.arrowGroup)==null||E.children().filter(G=>G.name==="arrow_box").forEach(G=>{G.id!==H.target.id&&G.attr({style:{fill:"#ccc"}})}),this.arrowLoopClick(c,H.target))}})),this.heartFight.heartrate&&(s=((y=this.AssistCtx)==null?void 0:y.measureText(`${(c==null?void 0:c.heartrate)||""}`).width)||0,(M=this.arrowGroup)==null||M.add(new g.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.heartrate)||""}`},o)})),a+=12),this.heartFight.interval&&(s=((P=this.AssistCtx)==null?void 0:P.measureText(`${(c==null?void 0:c.interval)||""}`).width)||0,(I=this.arrowGroup)==null||I.add(new g.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.interval)||""}`},o)})),a+=12),this.heartFight.qrstCompany&&(s=((A=this.AssistCtx)==null?void 0:A.measureText(`${(c==null?void 0:c.qrstCompany)||""}`).width)||0,(S=this.arrowGroup)==null||S.add(new g.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.qrstCompany)||""}`},o)})),a+=12),this.heartFight.telectricalaxis&&(s=((L=this.AssistCtx)==null?void 0:L.measureText(`${(c==null?void 0:c.telectricalaxis)||""}`).width)||0,(x=this.arrowGroup)==null||x.add(new g.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.telectricalaxis)||""}`},o)})))}}(b=this.sceneIns)==null||b.add(this.arrowGroup)}arrowLoopClick(e,t){this.$emit("notifyHeardBeat",g.util.clone(e)),this.currentHeardBeat.heardBeat=e,this.currentHeardBeat.ele=t,this.drawHeardBeatLine()}drawHeardBeatLine(e=0){var r,l,n,h,d,p;if(!this.currentHeardBeat.heardBeat)return;(r=this.heardBeatLineGroup)==null||r.removeAll(),(l=this.sceneIns)==null||l.remove(this.heardBeatLineGroup);let t=this.formatEcgData.processedData.otherParams.AnalyseValue[this.currentHeardBeat.heardBeat.index].KeyPosByBeat,i=0,s=this.getRednerPoints(),a=this.getAddRednerPoints(),o;for(const m in t)if(["Pstart","Pend","QRSstart","QRSend","Tstart","Tend"].includes(m)&&Object.prototype.hasOwnProperty.call(t,m)){i=(t[m]-this.slidingWindowInfo.startInd)*(((n=this.formatEcgData)==null?void 0:n.step)||0)*this.sceneMagnification;e:for(let f=0;f<s.length;f++)if(!(this.isLeadOff(f)||this.isLeadDel(f))){if(e>t[m]||!this.leadModel.isContinuous&&t[m]-this.slidingWindowInfo.startInd>(this.slidingWindowInfo.points||0)||(o=s[f],this.leadModel.isContinuous&&f>this.leadModel.line-1))break e;(h=this.heardBeatLineGroup)==null||h.add(this.createHeardBeatLine(o.pos[0]+i,o.pos[1]))}e:for(let f=0;f<a.length;f++)if(!(this.isLeadOff(this.longLeadConfig.leadIdxs[f])&&this.isLeadDel(this.longLeadConfig.leadIdxs[f]))){if(e>t[m])break e;o=a[f],(d=this.heardBeatLineGroup)==null||d.add(this.createHeardBeatLine(o.pos[0]+i,o.pos[1]))}}(p=this.sceneIns)==null||p.add(this.heardBeatLineGroup),t=null,s=null,a=null}createHeardBeatLine(e,t){return new g.Line({cursor:"",shape:{x1:e,y1:t-10,x2:e,y2:t+10},style:{stroke:"blue",lineWidth:1}})}nativeScrollFunc(e){console.log("event",e,e.target.scrollLeft),this.scrollCommon(e.target.scrollLeft||0)}handleScroll(e,t,i){t.type==="horizontal"&&(t.scrollLeft=t.scrollLeft||0,this.scrollCommon(t.scrollLeft))}scrollCommon(e){var i;if(this.sceneIsMoveUpDown)return;const t=v.getPointIdxForPx(e,(((i=this.formatEcgData)==null?void 0:i.step)||1)*this.sceneMagnification);this.rulerHistorySlidIdxs=t,this.scrollWaveFrom(t),this.scrollRuler(t),this.scrollArrow(t),this.$emit("notifyScrollPointIdx",t)}scrollWaveFrom(e){var s,a,o,r,l,n;this.slidingWindowInfo.startInd=e,this.slidingWindowInfo.endInd=e+(this.slidingWindowInfo.points||0),this.addSlidingWindowInfo.startInd=e,this.addSlidingWindowInfo.endInd=e+(this.addSlidingWindowInfo.points||0);let t=this.getRednerPoints(),i=this.getAddRednerPoints();this.waveDataCopy=t,this.addWaveDataCopy=i,(s=this.rowAndColwaveFromGroup)==null||s.eachChild((h,d)=>{d=d||0,h.attr({shape:{points:t[d].data.map(([p,m])=>[p+t[d].pos[0],m+t[d].pos[1]])}})}),(a=this.addwaveFromGroup)==null||a.eachChild((h,d)=>{d=d||0,h.attr({shape:{points:i[d].data.map(([p,m])=>[p+i[d].pos[0],m+i[d].pos[1]])}})}),this.leadModel.isShowPacing&&((r=(o=this.formatEcgData)==null?void 0:o.processedData.otherParams.PacingData)==null?void 0:r.length)&&((n=(l=this.pacingGroup)==null?void 0:l.childOfName("0_0"))==null||n.attr({shape:{points:this.getPacinfPoints(this.leadHeadConfig.leadHedeWidth,this.canvasContainer.height-this.drawBottomPacH)}})),t=null,i=null}scrollRuler(e){var i,s,a;(i=this.rulerGroup)==null||i.removeAll(),(s=this.sceneIns)==null||s.remove(this.rulerGroup);const t=v.getDataLenTimes(this.isSingleMode?0:e,((a=this.formatEcgData)==null?void 0:a.processedData.otherParams.SampleRate)||0)/1e3;this.drawRuler(t)}scrollArrow(e){var t,i;(t=this.arrowGroup)==null||t.removeAll(),(i=this.sceneIns)==null||i.remove(this.arrowGroup),this.drawLoopArrow(e),this.drawHeardBeatLine(e)}};u([w.Prop({default:()=>.04})],exports.default.prototype,"zoomStep",2);u([w.Prop({default:()=>!0})],exports.default.prototype,"supportTwoFingerZoom",2);u([w.Prop({default:()=>""})],exports.default.prototype,"prefixId",2);u([w.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"width",2);u([w.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"height",2);u([w.Prop({default:0,validator:e=>typeof e=="number"})],exports.default.prototype,"MXEnlargeWaveWidth",2);u([w.Prop({default:()=>v.LeadNameTexts})],exports.default.prototype,"LeadNameTextsPorps",2);u([w.Prop({default:0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"MXEnlargeWaveHeight",2);u([w.Prop({required:!0})],exports.default.prototype,"gridConfig",2);u([w.Prop({default:5,type:Number})],exports.default.prototype,"cellPoints",2);u([w.Prop({required:!0})],exports.default.prototype,"conventionalECGConfig",2);u([w.Prop({default:()=>({leadHedeWidth:20,leadHedeColor:"#000",leadHedeLineWidth:2})})],exports.default.prototype,"leadHeadConfig",2);u([w.Prop({required:!0})],exports.default.prototype,"formatEcgData",2);u([w.Prop({required:!0})],exports.default.prototype,"leadModel",2);u([w.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);u([w.Prop({default:5})],exports.default.prototype,"magnification",2);u([w.Prop({default:()=>({leadIdxs:[1,6,10],leadNames:[1,6,10]})})],exports.default.prototype,"longLeadConfig",2);u([w.Prop({default:()=>({isShow:!1,mode:!1,defaultSelect:2,heartrate:!1,interval:!1,qrstCompany:!1,telectricalaxis:!1})})],exports.default.prototype,"heartFight",2);u([w.Prop({default:()=>({isShow:!0,isNativeScroll:!1,scrollPanel:{scrollingY:!1},bar:{keepShow:!0,size:"10px"}})})],exports.default.prototype,"scrollConfig",2);u([w.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"rulerConfig",2);u([w.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"measurRulerConfig",2);u([w.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"paralleRulerConfig",2);u([w.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"magnifierRulerConfig",2);u([w.Prop({default:60})],exports.default.prototype,"ventricularRate",2);u([w.Prop({default:v.AnalysisMode.CompoundWave})],exports.default.prototype,"enlargeWaveMode",2);u([w.Prop({default:()=>[]})],exports.default.prototype,"enlargeGains",2);u([w.Prop({default:()=>[]})],exports.default.prototype,"enlargeSpeeds",2);u([w.Prop({default:()=>({defaultSelect:1})})],exports.default.prototype,"singleModeInfo",2);u([w.Prop({default:!0})],exports.default.prototype,"isMXEnlargeWaveShow",2);u([w.Prop({default:!1})],exports.default.prototype,"isSyncAnalyseValueCheck",2);u([v.throttling(100)],exports.default.prototype,"sceneInsMousemove",1);u([v.throttling(200)],exports.default.prototype,"nativeScrollFunc",1);u([v.throttling(200)],exports.default.prototype,"handleScroll",1);exports.default=u([X.default({name:"Methods"})],exports.default);
1
+ "use strict";var R=Object.defineProperty,z=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var B=(e,t,i)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,C=(e,t)=>{for(var i in t||(t={}))j.call(t,i)&&B(e,i,t[i]);if(O)for(var i of O(t))N.call(t,i)&&B(e,i,t[i]);return e},W=(e,t)=>z(e,k(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const T=require("vue"),X=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const m=require("../../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"),D=require("@costy-plus/utils"),u=require("zrender"),_=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function $(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const q=_(T),V=$(u);var U=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,f=(e,t,i,s)=>{for(var a=s>1?void 0:s?Y(t,i):t,o=e.length-1,r;o>=0;o--)(r=e[o])&&(a=(s?r(t,i,a):r(a))||a);return s&&a&&U(t,i,a),a};exports.default=class extends q.default{constructor(){super(...arguments),this.AssistCtx=Object.freeze(null),this.sceneIns=Object.freeze(null),this.leadHeadGroup=Object.freeze(null),this.splitLineGroup=Object.freeze(null),this.rowAndColwaveFromGroup=Object.freeze(null),this.singleWaveFromGroup=Object.freeze(null),this.addwaveFromGroup=Object.freeze(null),this.leadHeadNameGroup=Object.freeze(null),this.leadHeadOffAndDelGroup=Object.freeze(null),this.rulerGroup=Object.freeze(null),this.arrowGroup=Object.freeze(null),this.heardBeatLineGroup=Object.freeze(null),this.pacingGroup=Object.freeze(null),this.bottomAreaHeight=Object.freeze(55),this.dataTotalTimes=Object.freeze(0),this.totalRows=Object.freeze(0),this.rulerStep=Object.freeze(0),this.drawLoopArrowStartPosIdx=Object.freeze(0),this.dbClickWaveFromTime=Object.freeze(0),this.currentHeardBeat={heardBeat:null,ele:null},this.loopArrowY=Object.freeze({add:0,rowAndCol:0}),this.fontFamily=Object.freeze("\u5FAE\u8F6F\u96C5\u9ED1"),this.ruleH=Object.freeze(40),this.bottomPacH=Object.freeze(20),this.drawBottomPacH=Object.freeze(this.bottomPacH+40),this.pacingh=Object.freeze(12),this.pacingPFontSize=Object.freeze(14),this.splitBlockHeight=0,this.splitBlockHeight2=0,this.splitPoint=0,this.slidingWindowInfo=Object.freeze({}),this.addSlidingWindowInfo=Object.freeze({}),this.highestAndLowestPoint=Object.freeze({Data:{maxPoints:0,minPoints:0},ComplexData:{maxPoints:0,minPoints:0}}),this.drawArea=Object.freeze({width:0,height:0}),this.vuescrollWH={width:0,height:0},this.waveDataCopy=[],this.addWaveDataCopy=[],this.singleWaveDataCopy=[],this.leadNameList=[],this.activeLeadIdx=-1,this.activeLeadAnalyseValue=null,this.sceneIsMouseDown=Object.freeze(!1),this.sceneIsMouseDownX=Object.freeze(0),this.sceneIsMouseDownY=Object.freeze(0),this.sceneIsStartX=Object.freeze(0),this.sceneIsStartY=Object.freeze(0),this.sceneIsMoveUpDown=Object.freeze(!1),this.isShowEnlargeWave=!1,this.sceneFirstDistance=Object.freeze(0),this.sceneMagnification=1,this.rulerHistorySlidIdxs=Object.freeze(0)}get canvasContainer(){var e;return{width:this.width,height:this.height-(this.scrollConfig.isShow&&parseInt(`${(e=this.scrollConfig.bar)==null?void 0:e.size}`)||0)||0}}get waveFromData(){var e,t,i;return((e=this.formatEcgData)==null?void 0:e.analysisValueMode)===D.AnalysisMode.CompoundWave?((t=this.formatEcgData)==null?void 0:t.processedData.handleData.ComplexData)||[[]]:((i=this.formatEcgData)==null?void 0:i.processedData.handleData.Data)||[[]]}get isSingleMode(){return this.leadModel.column===1&&this.leadModel.line===1}get MXEnlargeWaveWH(){let e=this.width,t=this.height;return this.MXEnlargeWaveWidth&&(e=this.MXEnlargeWaveWidth),this.MXEnlargeWaveHeight&&(t=this.MXEnlargeWaveHeight),{width:e,height:t}}destroyed(){var e,t,i,s,a,o,r,l,n,h,d,g;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(),(r=this.leadHeadOffAndDelGroup)==null||r.removeAll(),(l=this.rulerGroup)==null||l.removeAll(),(n=this.arrowGroup)==null||n.removeAll(),(h=this.heardBeatLineGroup)==null||h.removeAll(),(d=this.pacingGroup)==null||d.removeAll(),(g=this.sceneIns)==null||g.dispose()}init(){var e;this.initWaveFormPeer(),this.combinationDrawing(),(e=this.formatEcgData)!=null&&e.processedData.otherParams.PosStart&&(this.scrollConfig.isShow?this.$nextTick(()=>{var t,i,s,a,o;this.scrollConfig.isNativeScroll?(s=this.$refs[this.prefixId+"nativeScroll"])==null||s.scrollBy({left:(((t=this.formatEcgData)==null?void 0:t.processedData.otherParams.PosStart)||0)*(((i=this.formatEcgData)==null?void 0:i.step)||0)*this.sceneMagnification,top:0}):this.$refs[this.prefixId+"vueScroll"].scrollTo({dx:(((a=this.formatEcgData)==null?void 0:a.processedData.otherParams.PosStart)||0)*(((o=this.formatEcgData)==null?void 0:o.step)||0)*this.sceneMagnification})}):(this.scrollWaveFrom(this.formatEcgData.processedData.otherParams.PosStart),this.scrollRuler(this.formatEcgData.processedData.otherParams.PosStart),this.scrollArrow(this.formatEcgData.processedData.otherParams.PosStart)))}initWaveFormPeer(){var i;(i=this.sceneIns)==null||i.dispose(),this.AssistCtx=null;const e=document.getElementById(`${this.prefixId}wave-from-box`);this.sceneIns=V.init(e,{width:this.canvasContainer.width,height:this.canvasContainer.height,devicePixelRatio:2});const t=document.getElementById(`${this.prefixId}MXGrid`);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)}sceneInsEventOff(){var e,t,i;(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)}combinationDrawing(){this.initConfig(),this.drawLeadHead(),this.drawColSplitLine(),this.initSlidingWindowInfo(),this.drawPacing(),this.drawRulerNotes(),this.drawWaveFrom()}initConfig(){var t,i,s,a,o,r,l,n,h,d,g;this.rowAndColwaveFromGroup=new u.Group({name:"rowAndColwaveFrom"}),this.singleWaveFromGroup=new u.Group({name:"singleWaveFrom"}),this.addwaveFromGroup=new u.Group({name:"addwaveFrom"}),this.leadHeadGroup=new u.Group({name:"leadHead"}),this.splitLineGroup=new u.Group({name:"splitLine"}),this.leadHeadNameGroup=new u.Group({name:"leadHeadName"}),this.leadHeadOffAndDelGroup=new u.Group({name:"leadHeadOffAndDel"}),this.rulerGroup=new u.Group({name:"ruler"}),this.arrowGroup=new u.Group({name:"arrowLoop"}),this.heardBeatLineGroup=new u.Group({name:"heardBeatLine"}),this.pacingGroup=new u.Group({name:"pacing"}),(this.leadModel.name==="12*1"||this.leadModel.name==="18*1"||this.leadModel.name==="15*1"||this.leadModel.name==="16*1")&&(this.sceneMagnification=.8),this.vuescrollWH.width=this.width,this.vuescrollWH.height=this.height;let e=this.canvasContainer.width;if(((i=(t=this.conventionalECGConfig)==null?void 0:t.ecgReviewSetting)==null?void 0:i.ecgareawidth)==="1"){const w=D.getPrintLengthToPx(((s=this.formatEcgData)==null?void 0:s.processedData.otherParams.SampleRate)||0)+this.leadHeadConfig.leadHedeWidth;w<=e&&(e=w)}else this.leadModel.isContinuous&&!this.isSingleMode&&(((a=this.formatEcgData)==null?void 0:a.dataPxLen)||0)<e-this.leadHeadConfig.leadHedeWidth&&(e=(((o=this.formatEcgData)==null?void 0:o.dataPxLen)||0)+this.leadHeadConfig.leadHedeWidth);if(this.drawArea={width:e,height:this.canvasContainer.height-this.bottomAreaHeight},this.slidingWindowInfo={points:0,startInd:0,endInd:0},this.addSlidingWindowInfo={points:0,startInd:0,endInd:0},this.loopArrowY={add:0,rowAndCol:0},this.currentHeardBeat={heardBeat:null,ele:null},this.leadNameList=((r=this.formatEcgData)==null?void 0:r.processedData.otherParams.LeadName)||[],this.totalRows=this.leadModel.line+this.leadModel.add||1,this.highestAndLowestPoint=(l=this.formatEcgData)==null?void 0:l.calcHighestAndLowestPoint(),this.isSingleMode)this.splitBlockHeight=(((n=this.formatEcgData)==null?void 0:n.analysisValueMode)===D.AnalysisMode.CompoundWave?Math.abs(this.highestAndLowestPoint.ComplexData.maxPoints)+Math.abs(this.highestAndLowestPoint.ComplexData.minPoints):Math.abs(this.highestAndLowestPoint.Data.maxPoints)+Math.abs(this.highestAndLowestPoint.Data.minPoints))+22,this.splitBlockHeight>this.drawArea.height&&(this.splitBlockHeight=this.drawArea.height/6,this.splitBlockHeight2=this.drawArea.height/6);else{let w=this.drawArea.height;this.leadModel.isShowPacing&&(w=this.drawArea.height-this.drawBottomPacH),this.splitBlockHeight=w/this.totalRows,this.splitBlockHeight2=w/this.totalRows}this.dataTotalTimes=D.getDataLenTimes(this.waveFromData[0].length||0,((h=this.formatEcgData)==null?void 0:h.processedData.otherParams.SampleRate)||0),this.rulerStep=(((d=this.formatEcgData)==null?void 0:d.step)||1)*(((g=this.formatEcgData)==null?void 0:g.processedData.otherParams.SampleRate)||1)/(this.gridConfig.cellMg*2+2)}isLeadOff(e){var t;return!!(((t=this.formatEcgData)==null?void 0:t.processedData.otherParams.LeadOff)||[]).includes(e)}isLeadDel(e){var t;return!!(((t=this.formatEcgData)==null?void 0:t.processedData.otherParams.LeadDelete)||[]).includes(e)}onDbClickWaveFrom(e,t){console.log("onDbClickWaveFrom",e);const i=Date.now(),s=()=>{var g,w,p,v;const a=e.target.name.split("_");this.activeLeadIdx=+a[0];const o=+a[1];let r=0,l=0;t==="single"?(r=e.offsetX-this.singleWaveDataCopy[o].pos[0],l=this.singleWaveDataCopy[o].startInd):t==="rowAndCol"?(r=e.offsetX-this.waveDataCopy[o].pos[0],l=this.waveDataCopy[o].startInd||0):t==="add"&&(r=e.offsetX-this.addWaveDataCopy[o].pos[0],l=this.addWaveDataCopy[o].startInd||0);let n=D.getPointIdxForPx(r,(((g=this.formatEcgData)==null?void 0:g.step)||1)*this.sceneMagnification);n+=l;const h=((w=this.formatEcgData)==null?void 0:w.processedData.otherParams.AnalyseValue)||[];let d=null;if(this.enlargeWaveMode===D.AnalysisMode.SelectedHeartbeat){if(n<=h[1].KeyPosByBeat.Tend+.1*(((p=this.formatEcgData)==null?void 0:p.processedData.otherParams.SampleRate)||0))d=h[1];else for(let y=1;y<h.length;y++)if(n>h[y-1].KeyPosByBeat.Tend+1&&n<h[y].KeyPosByBeat.Tend+.1*(((v=this.formatEcgData)==null?void 0:v.processedData.otherParams.SampleRate)||0)){d=h[y];break}}else d=h[0];!d||(this.activeLeadAnalyseValue=W(C({},d),{BeatCount:h.length-1}),d=null,this.$emit("notifyActiveEnlargr"),this.isShowEnlargeWave=!0)};i-this.dbClickWaveFromTime<400?(this.dbClickWaveFromTime=0,s()):this.dbClickWaveFromTime=i}sceneInsMousemove(e){var t;if(e.event.preventDefault(),e.event.stopPropagation(),this.sceneIsMouseDown){if(!e.event.touches||e.event.touches.length===1){const i=e.offsetY-this.sceneIsStartY,s=e.offsetX-this.sceneIsStartX;Math.abs(i)>Math.abs(s)?(this.sceneIsMoveUpDown=!0,this.moveUpAndDown(e.offsetY-this.sceneIsMouseDownY),this.sceneIsMouseDownY=e.offsetY):(this.sceneIsMoveUpDown=!1,this.scrollConfig.isNativeScroll?(t=this.$refs[this.prefixId+"nativeScroll"])==null||t.scrollBy({left:-(e.offsetX-this.sceneIsMouseDownX),top:0}):this.$refs[this.prefixId+"vueScroll"].scrollBy({dx:-(e.offsetX-this.sceneIsMouseDownX)}),this.sceneIsMouseDownX=e.offsetX)}else if(this.supportTwoFingerZoom&&e.event.touches.length===2){const i=D.getDistance({x:e.event.touches[0].pageX,y:e.event.touches[0].pageY},{x:e.event.touches[1].pageX,y:e.event.touches[1].pageY});this.sceneFirstDistance===0&&(this.sceneFirstDistance=i),i<this.sceneFirstDistance?(this.sceneMagnification-=this.zoomStep,this.sceneMagnification<.7&&(this.sceneMagnification=.7)):this.sceneMagnification+=this.zoomStep,this.splitBlockHeight=this.splitBlockHeight2*this.sceneMagnification,this.sceneFirstDistance=i,this.zoomWave()}}}sceneInsMousemoveTest(e){this.sceneMagnification=e,this.splitBlockHeight=this.splitBlockHeight2*this.sceneMagnification,this.zoomWave()}moveUpAndDown(e){var t,i,s,a,o,r,l,n,h,d;this.isSingleMode?(this.singleWaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)+this.singleWaveFromGroup.getBoundingRect().height,this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e)+this.arrowGroup.getBoundingRect().height,this.singleWaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e),this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e)):(this.rowAndColwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)+this.rowAndColwaveFromGroup.getBoundingRect().height,this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e)+this.arrowGroup.getBoundingRect().height,this.addwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)+this.addwaveFromGroup.getBoundingRect().height,this.rowAndColwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e),this.arrowGroup.getBoundingRect().y+(this.arrowGroup.y+e),this.addwaveFromGroup.getBoundingRect().y+(this.rowAndColwaveFromGroup.y+e)),this.isSingleMode?(t=this.singleWaveFromGroup)==null||t.attr({y:this.singleWaveFromGroup.y+e}):((i=this.rowAndColwaveFromGroup)==null||i.attr({y:this.rowAndColwaveFromGroup.y+e}),(s=this.leadHeadGroup)==null||s.attr({y:this.leadHeadGroup.y+e}),(a=this.addwaveFromGroup)==null||a.attr({y:this.addwaveFromGroup.y+e}),(o=this.splitLineGroup)==null||o.attr({y:this.splitLineGroup.y+e})),(r=this.leadHeadNameGroup)==null||r.attr({y:this.leadHeadNameGroup.y+e}),(l=this.leadHeadOffAndDelGroup)==null||l.attr({y:this.leadHeadOffAndDelGroup.y+e}),(n=this.arrowGroup)==null||n.attr({y:this.arrowGroup.y+e}),(h=this.heardBeatLineGroup)==null||h.attr({y:this.heardBeatLineGroup.y+e}),this.leadModel.isShowPacing&&((d=this.pacingGroup)==null||d.attr({y:this.pacingGroup.y+e}))}zoomWave(){var s,a,o,r,l;this.scrollConfig.isShow&&!this.isSingleMode&&(this.vuescrollWH.width=this.canvasContainer.width+(((s=this.formatEcgData)==null?void 0:s.dataPxLen)||0)*this.sceneMagnification-this.splitPoint);const e=(((a=this.formatEcgData)==null?void 0:a.step)||0)*this.sceneMagnification,t=Math.ceil(this.splitPoint/e);this.slidingWindowInfo.points=t;const i=Math.ceil((this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/e);this.addSlidingWindowInfo.points=i,this.drawLeadHead(),this.drawColSplitLine(),this.isSingleMode?(this.slidingWindowInfo.endInd=t,this.addWaveDataCopy=[],this.waveDataCopy=[],this.createSingleWaveFrom(),(o=this.sceneIns)==null||o.add(this.singleWaveFromGroup)):this.scrollWaveFrom(this.rulerHistorySlidIdxs),this.scrollRuler(this.rulerHistorySlidIdxs),this.scrollArrow(this.rulerHistorySlidIdxs),(r=this.leadHeadNameGroup)==null||r.eachChild((n,h)=>{n.attr({style:W(C({},n.style),{y:n.style.y*this.sceneMagnification})})}),(l=this.leadHeadOffAndDelGroup)==null||l.eachChild((n,h)=>{n.attr({style:W(C({},n.style),{y:n.style.y*this.sceneMagnification})})})}sceneInsMouseDown(e){e.event.preventDefault(),e.event.stopPropagation(),this.sceneIsMouseDown=!0,!e.event.touches||e.event.touches.length===1?(this.sceneIsMouseDownX=e.offsetX,this.sceneIsMouseDownY=e.offsetY,this.sceneIsStartX=e.offsetX,this.sceneIsStartY=e.offsetY):e.event.touches.length===2&&(this.sceneFirstDistance=D.getDistance({x:e.event.touches[0].pageX,y:e.event.touches[0].pageY},{x:e.event.touches[1].pageX,y:e.event.touches[1].pageY}))}sceneInsMouseUp(e){e.event.preventDefault(),e.event.stopPropagation(),this.sceneIsMouseDown=!1,this.sceneIsMoveUpDown=!1}drawPacing(){var i,s,a,o,r,l,n;if(!this.leadModel.isShowPacing||!((s=(i=this.formatEcgData)==null?void 0:i.processedData.otherParams.PacingData)!=null&&s.length))return;(a=this.pacingGroup)==null||a.removeAll(),(o=this.sceneIns)==null||o.remove(this.pacingGroup);const e=this.leadHeadConfig.leadHedeWidth,t=this.canvasContainer.height-this.drawBottomPacH;(r=this.pacingGroup)==null||r.add(new u.Text({cursor:"",style:{x:e,y:t,text:"P",fontSize:this.pacingPFontSize,fill:this.leadConfig.lineColor,fontFamily:this.fontFamily}})),(l=this.pacingGroup)==null||l.add(new u.Polyline({cursor:"",name:"0_0",shape:{points:this.getPacinfPoints(e,t)},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}})),(n=this.sceneIns)==null||n.add(this.pacingGroup)}getPacinfPoints(e,t){var i;return(((i=this.formatEcgData)==null?void 0:i.processedData.otherParams.PacingData)||[]).slice(this.addSlidingWindowInfo.startInd,this.addSlidingWindowInfo.endInd).map((s,a)=>{var o;return[e+a*(((o=this.formatEcgData)==null?void 0:o.step)||0)*this.sceneMagnification,(s===1?t-this.pacingh:t)+this.pacingPFontSize]})}createLeadHead(e,t,i){var o;const s=this.leadHeadConfig.leadHedeWidth/4;let a=(((o=this.formatEcgData)==null?void 0:o.sens)||0)*this.sceneMagnification;return a=i?a/2:a,new u.Polyline({cursor:"",shape:{points:[[0+e,0+t],[s+e,0+t],[s+e,-a+t],[3*s+e,-a+t],[3*s+e,0+t],[4*s+e,0+t]]},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}})}creatSplitLine(e,t,i){var s,a;return new u.Line({cursor:"",shape:{x1:0+e,y1:0+t,x2:0+e,y2:(i?(((s=this.formatEcgData)==null?void 0:s.sens)||0)*this.sceneMagnification/2:(((a=this.formatEcgData)==null?void 0:a.sens)||0)*this.sceneMagnification)+t},style:{stroke:this.leadHeadConfig.leadHedeColor,lineWidth:this.leadHeadConfig.leadHedeLineWidth}})}drawLeadHead(){var i,s,a,o,r,l;(i=this.leadHeadGroup)==null||i.removeAll(),(s=this.sceneIns)==null||s.remove(this.leadHeadGroup);let e=0,t=!1;for(let n=1;n<=this.totalRows;n++)e=0,t=!1,n<=this.leadModel.line?e=(((a=this.formatEcgData)==null?void 0:a.processedData.otherParams.LeadName)||[])[n-1]||0:n>this.leadModel.line&&n-this.leadModel.line<=this.leadModel.add&&(e=this.longLeadConfig.leadNames[n-this.leadModel.line-1]),((o=this.formatEcgData)==null?void 0:o.gainName)==="\u80F8\u5BFC\u51CF\u534A"&&/^V\w+/.test(this.LeadNameTextsPorps[e])&&(t=!0),(r=this.leadHeadGroup)==null||r.add(this.createLeadHead(0,n*this.splitBlockHeight,t));(l=this.sceneIns)==null||l.add(this.leadHeadGroup)}drawColSplitLine(){var a,o,r,l,n,h,d,g,w,p,v,y,M;(a=this.splitLineGroup)==null||a.removeAll(),(o=this.sceneIns)==null||o.remove(this.splitLineGroup);const e=(this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/this.leadModel.column;if(this.splitPoint=e,this.isSingleMode){const I=D.getDataLenTimes(Math.ceil(this.splitPoint/((((r=this.formatEcgData)==null?void 0:r.step)||1)*this.sceneMagnification))||0,((l=this.formatEcgData)==null?void 0:l.processedData.otherParams.SampleRate)||0),P=parseInt(`${I/1e3%60}`,10);this.splitPoint=P*(((n=this.formatEcgData)==null?void 0:n.processedData.otherParams.SampleRate)||0)*(((h=this.formatEcgData)==null?void 0:h.step)||0)*this.sceneMagnification}let t=0,i=0,s=0;for(let I=1;I<=this.leadModel.column-1;I++){t=I*e+this.leadHeadConfig.leadHedeWidth,i=I*this.leadModel.line;for(let P=1;P<=this.leadModel.line&&(s=(((d=this.formatEcgData)==null?void 0:d.processedData.otherParams.LeadName)||[])[P-1+i],s!==void 0);P++)((g=this.formatEcgData)==null?void 0:g.gainName)==="\u80F8\u5BFC\u51CF\u534A"&&/^V\w+/.test(this.LeadNameTextsPorps[s])?(p=this.splitLineGroup)==null||p.add(this.creatSplitLine(t,P*this.splitBlockHeight-(((w=this.formatEcgData)==null?void 0:w.sens)||0)*this.sceneMagnification/2*.5,!0)):(y=this.splitLineGroup)==null||y.add(this.creatSplitLine(t,P*this.splitBlockHeight-(((v=this.formatEcgData)==null?void 0:v.sens)||0)*this.sceneMagnification*.5))}(M=this.sceneIns)==null||M.add(this.splitLineGroup)}initSlidingWindowInfo(){var s,a;const e=(((s=this.formatEcgData)==null?void 0:s.step)||0)*this.sceneMagnification,t=Math.ceil(this.splitPoint/e);this.slidingWindowInfo={points:t,startInd:0,endInd:t},this.scrollConfig.isShow&&!this.isSingleMode&&(this.vuescrollWH.width=this.canvasContainer.width+(((a=this.formatEcgData)==null?void 0:a.dataPxLen)||0)*this.sceneMagnification-this.splitPoint);const i=Math.ceil((this.drawArea.width-this.leadHeadConfig.leadHedeWidth)/e);this.addSlidingWindowInfo={points:i,startInd:0,endInd:i}}getRednerSinglePoints(){let e=0,t=0;const i=this.waveFromData[this.singleModeInfo.defaultSelect]||[];let s=this.slidingWindowInfo.startInd||0,a=this.slidingWindowInfo.endInd||0;const o=[],r=Math.ceil(i.length/(this.slidingWindowInfo.points||1));for(let l=0;l<1;l++){e=l*this.splitPoint+this.leadHeadConfig.leadHedeWidth,t=0;for(let n=1;n<=r;n++)t=n*this.splitBlockHeight,n>1&&(t*=.8,s=a,a=s+(this.slidingWindowInfo.points||0)),n===1&&(this.loopArrowY.rowAndCol=t),o.push({pos:[e,t],startInd:s,endInd:a,data:i.slice(s,a).map((h,d)=>{var g;return[d*(((g=this.formatEcgData)==null?void 0:g.step)||0)*this.sceneMagnification,-h*this.sceneMagnification]})})}return o}getRednerPoints(){let e=0,t=0,i=0,s=[],a=this.slidingWindowInfo.startInd||0,o=this.slidingWindowInfo.endInd||0;const r=[];for(let l=0;l<this.leadModel.column;l++){e=l*this.splitPoint+this.leadHeadConfig.leadHedeWidth,t=0,this.leadModel.isContinuous&&l>0&&(a=o,o=a+(this.slidingWindowInfo.points||0));for(let n=1;n<=this.leadModel.line&&(t=n*this.splitBlockHeight,!(i>(this.waveFromData||[]).length-1));n++)s=this.waveFromData[i]||[],i++,n===1&&(this.loopArrowY.rowAndCol=t),r.push({pos:[e,t],startInd:a,endInd:o,data:s.slice(a,o).map((h,d)=>{var g;return[d*(((g=this.formatEcgData)==null?void 0:g.step)||0)*this.sceneMagnification,-h*this.sceneMagnification]})})}return r}getAddRednerPoints(){const e=[],t=this.leadHeadConfig.leadHedeWidth;let i=0,s=0,a=[];for(let o=0;o<this.leadModel.add;o++)s=this.longLeadConfig.leadIdxs[o],i=(o+this.leadModel.line+1)*this.splitBlockHeight,a=this.waveFromData[s]||[],o===0&&(this.loopArrowY.add=i),e.push({pos:[t,i],startInd:this.addSlidingWindowInfo.startInd||0,endInd:this.addSlidingWindowInfo.endInd||0,data:a.slice(this.addSlidingWindowInfo.startInd,this.addSlidingWindowInfo.endInd).map((r,l)=>{var n;return[l*(((n=this.formatEcgData)==null?void 0:n.step)||0)*this.sceneMagnification,-r*this.sceneMagnification]})});return e}createSingleWaveFrom(){var r,l,n,h,d,g,w;(r=this.singleWaveFromGroup)==null||r.removeAll();const e=(((l=this.formatEcgData)==null?void 0:l.processedData.otherParams.LeadName)||[])[this.singleModeInfo.defaultSelect]||0;let t=this.getRednerSinglePoints(),i=D.getDataLenTimes(this.slidingWindowInfo.points||0,((n=this.formatEcgData)==null?void 0:n.processedData.otherParams.SampleRate)||0);const s=i;let a=0,o=0;for(let p=0;p<t.length&&!(t[p].pos[1]>this.drawArea.height+this.bottomAreaHeight);p++)this.isLeadDel(e)||(a=Math.floor(i/1e3/60),o=Math.floor(i/1e3%60),a=o===60?a+=1:a,a=a===0?"00":a<10?`0${a}`:a,o=o===0||o===60?"00":o<10?`0${o}`:o,(h=this.singleWaveFromGroup)==null||h.add(new u.Polyline({cursor:"",name:this.singleModeInfo.defaultSelect+"_"+p,shape:{points:t[p].data.map(([v,y])=>[v+t[p].pos[0],y+t[p].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:v=>{this.onDbClickWaveFrom(v,"single")}})),(g=this.singleWaveFromGroup)==null||g.add(new u.Text({cursor:"",style:{x:t[p].pos[0],y:t[p].pos[1]-(((d=this.formatEcgData)==null?void 0:d.sens)||0)*this.sceneMagnification/2,text:p===0?"00:00 \u5FC3\u7387":`${a}:${o} \u5FC3\u7387`,fontWeight:"bold",fontSize:14,fill:"#FF0080",fontFamily:this.fontFamily}})),p>0&&(i+=s));this.createLeadName(e,t[0].pos[0]-10,t[0].pos[1]+10),this.createLeadOffAndDel(e,t[0].pos[0]-5,t[0].pos[1]-(((w=this.formatEcgData)==null?void 0:w.sens)||0)*this.sceneMagnification/2-15),this.singleWaveDataCopy=t,t=null}createAddWaveFrom(){var t,i;console.time("createAddWaveFrom");let e=this.getAddRednerPoints();for(let s=0;s<e.length;s++)this.isLeadDel(this.longLeadConfig.leadIdxs[s])||((t=this.addwaveFromGroup)==null||t.add(new u.Polyline({cursor:"",name:this.longLeadConfig.leadIdxs[s]+"_"+s,shape:{points:e[s].data.map(([a,o])=>[a+e[s].pos[0],o+e[s].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:a=>{this.onDbClickWaveFrom(a,"add")}})),this.createLeadName(this.longLeadConfig.leadNames[s],e[s].pos[0],e[s].pos[1]-15,!0),this.createLeadOffAndDel(this.longLeadConfig.leadIdxs[s],e[s].pos[0]-5,e[s].pos[1]-(((i=this.formatEcgData)==null?void 0:i.sens)||0)*this.sceneMagnification/2-15));console.timeEnd("createAddWaveFrom"),this.addWaveDataCopy=e,e=null}createRowAndColWaveFrom(){var i,s,a,o,r,l;console.time("createRowAndColWaveFrom"),(i=this.rowAndColwaveFromGroup)==null||i.removeAll();let e=this.getRednerPoints(),t=0;for(let n=0;n<e.length;n++)t=(((s=this.formatEcgData)==null?void 0:s.processedData.otherParams.LeadName)||[])[n]||0,this.isLeadDel(t)||(a=this.rowAndColwaveFromGroup)==null||a.add(new u.Polyline({cursor:"",name:n+"_"+n,shape:{points:e[n].data.map(([h,d])=>[h+e[n].pos[0],d+e[n].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth},onclick:h=>{this.onDbClickWaveFrom(h,"rowAndCol")}})),n<this.leadModel.line?(this.createLeadName(t,e[n].pos[0],e[n].pos[1]-15),this.createLeadOffAndDel(t,e[n].pos[0]-5,e[n].pos[1]-(((o=this.formatEcgData)==null?void 0:o.sens)||0)*this.sceneMagnification/2-15)):(this.createLeadName(t,e[n].pos[0]+5,e[n].pos[1]-(((r=this.formatEcgData)==null?void 0:r.sens)||0)*this.sceneMagnification/2),this.createLeadOffAndDel(t,e[n].pos[0]-5,e[n].pos[1]-(((l=this.formatEcgData)==null?void 0:l.sens)||0)*this.sceneMagnification/2+9));this.waveDataCopy=e,e=null}createLeadName(e,t,i,s=!1){var a;(a=this.leadHeadNameGroup)==null||a.add(new u.Text({style:{x:t,y:i,text:this.LeadNameTextsPorps[e],fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily},oncontextmenu:o=>{o.event.preventDefault(),this.$emit("notiifyLeadName",{event:W(C({},o),{name:this.LeadNameTextsPorps[e],idx:e}),isAdd:s})},onclick:o=>{this.$emit("notiifyLeadName",{event:W(C({},o),{name:this.LeadNameTextsPorps[e],idx:e}),isAdd:s})}}))}createLeadOffAndDel(e,t,i){var s;(this.isLeadOff(e)||this.isLeadDel(e))&&((s=this.leadHeadOffAndDelGroup)==null||s.add(new u.Text({cursor:"",style:{x:t,y:i,text:"X",fontWeight:"bold",fontSize:18,fill:"#E42c03",fontFamily:this.fontFamily}})))}drawRulerNotes(){var s,a,o,r,l,n;if(!this.rulerConfig.isShow)return;const e={fill:"#FF0080",fontSize:13,fontFamily:this.fontFamily},t=new u.Text({cursor:"",style:C({text:"(s)",x:this.leadHeadConfig.leadHedeWidth/2-8,y:this.canvasContainer.height-25},e)}),i=new u.Text({style:C({text:`${((s=this.formatEcgData)==null?void 0:s.gainName)==="\u80F8\u5BFC\u51CF\u534A"?(a=this.formatEcgData)==null?void 0:a.gainName:`${(o=this.formatEcgData)==null?void 0:o.gain}mm/mV`} ${(r=this.formatEcgData)==null?void 0:r.speed}mm/s`,x:this.leadHeadConfig.leadHedeWidth/2+20,y:this.canvasContainer.height-this.ruleH},e)});(l=this.sceneIns)==null||l.add(i),(n=this.sceneIns)==null||n.add(t)}drawRuler(e=0){var o,r,l,n,h;if(!this.rulerConfig.isShow)return;const t=this.dataTotalTimes/1e3;let i=this.leadHeadConfig.leadHedeWidth,s=0,a=t;if(this.leadModel.isContinuous)a=t*5;else if(!this.leadModel.add&&((o=this.formatEcgData)==null?void 0:o.step)){const d=D.getPointIdxForPx(this.splitPoint,this.formatEcgData.step*this.sceneMagnification),g=D.getDataLenTimes(d,((r=this.formatEcgData)==null?void 0:r.processedData.otherParams.SampleRate)||0)/1e3;a=e+g}for(let d=e;d<=a;d=+(d+.1).toFixed(1))d!==e&&(i+=this.rulerStep*this.sceneMagnification),d%1===0?(s=this.canvasContainer.height-10,(l=this.rulerGroup)==null||l.add(new u.Text({cursor:"",style:{x:i,y:s-15,text:d+"",fontSize:13,fontFamily:this.fontFamily,fill:"#FF0080"}}))):s=this.canvasContainer.height-5,(n=this.rulerGroup)==null||n.add(new u.Line({cursor:"",shape:{x1:i,y1:s,x2:i,y2:this.canvasContainer.height},style:{stroke:"#FF0080",lineWidth:2}}));(h=this.sceneIns)==null||h.add(this.rulerGroup)}drawWaveFrom(){var e,t,i;this.isSingleMode?(this.addWaveDataCopy=[],this.waveDataCopy=[],this.createSingleWaveFrom(),(e=this.sceneIns)==null||e.add(this.singleWaveFromGroup)):(this.singleWaveDataCopy=[],this.createAddWaveFrom(),this.createRowAndColWaveFrom(),(t=this.sceneIns)==null||t.add(this.rowAndColwaveFromGroup),(i=this.sceneIns)==null||i.add(this.addwaveFromGroup)),this.drawLeadHeadNameAndOffOrDel(),this.drawRuler(),this.drawLoopArrow()}drawLeadHeadNameAndOffOrDel(){var e,t;(e=this.sceneIns)==null||e.add(this.leadHeadNameGroup),(t=this.sceneIns)==null||t.add(this.leadHeadOffAndDelGroup)}drawLoopArrow(e=0){var l,n,h,d,g,w,p,v,y,M,I,P,S,A,L,x,b;if(this.drawLoopArrowStartPosIdx=e,!this.heartFight.isShow)return;this.heartFight.mode&&this.currentHeardBeat.heardBeat===null&&(this.currentHeardBeat.heardBeat=((l=this.formatEcgData)==null?void 0:l.heartBeatPosition[this.heartFight.defaultSelect])||null,this.drawHeardBeatLine());let t=0,i=0;this.leadModel.add?i=this.loopArrowY.add-(((n=this.formatEcgData)==null?void 0:n.sens)||0)*this.sceneMagnification-this.splitBlockHeight/3.5:i=20;let s=0,a=0;const o={fontSize:12,fill:"red",fontFamily:this.fontFamily};let r=0;for(let H=0;H<(((h=this.formatEcgData)==null?void 0:h.heartBeatPosition)||[]).length;H++){const c=(d=this.formatEcgData)==null?void 0:d.heartBeatPosition[H];if(r=((c==null?void 0:c.position)||0)-e,!(e>((c==null?void 0:c.position)||0))&&!(!this.leadModel.isContinuous&&!this.leadModel.add&&r>(this.slidingWindowInfo.points||0))&&!(this.isSingleMode&&this.singleModeInfo&&r>(this.slidingWindowInfo.points||0))){if(((c==null?void 0:c.position)||0)-this.addSlidingWindowInfo.startInd>(this.addSlidingWindowInfo.points||0))break;t=r*(((g=this.formatEcgData)==null?void 0:g.step)||0)*this.sceneMagnification+this.leadHeadConfig.leadHedeWidth-9.5,a=0,(v=this.arrowGroup)==null||v.add(new u.Polygon({name:"arrow_box",shape:{points:[[4+t,0+i],[15+t,0+i],[15+t,10+i],[19+t,10+i],[9.5+t,22+i],[0+t,10+i],[4+t,10+i],[4+t,0+i]]},style:{fill:((p=(w=this.currentHeardBeat)==null?void 0:w.heardBeat)==null?void 0:p.index)===(c==null?void 0:c.index)?"blue":"#ccc"},onclick:F=>{var E;!this.heartFight.mode||(F.target.attr({style:{fill:"blue"}}),(E=this.arrowGroup)==null||E.children().filter(G=>G.name==="arrow_box").forEach(G=>{G.id!==F.target.id&&G.attr({style:{fill:"#ccc"}})}),this.arrowLoopClick(c,F.target))}})),this.heartFight.heartrate&&(s=((y=this.AssistCtx)==null?void 0:y.measureText(`${(c==null?void 0:c.heartrate)||""}`).width)||0,(M=this.arrowGroup)==null||M.add(new u.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.heartrate)||""}`},o)})),a+=12),this.heartFight.interval&&(s=((I=this.AssistCtx)==null?void 0:I.measureText(`${(c==null?void 0:c.interval)||""}`).width)||0,(P=this.arrowGroup)==null||P.add(new u.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.interval)||""}`},o)})),a+=12),this.heartFight.qrstCompany&&(s=((S=this.AssistCtx)==null?void 0:S.measureText(`${(c==null?void 0:c.qrstCompany)||""}`).width)||0,(A=this.arrowGroup)==null||A.add(new u.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.qrstCompany)||""}`},o)})),a+=12),this.heartFight.telectricalaxis&&(s=((L=this.AssistCtx)==null?void 0:L.measureText(`${(c==null?void 0:c.telectricalaxis)||""}`).width)||0,(x=this.arrowGroup)==null||x.add(new u.Text({cursor:"",style:C({x:4+t-s*1.5,y:a+i,text:`${(c==null?void 0:c.telectricalaxis)||""}`},o)})))}}(b=this.sceneIns)==null||b.add(this.arrowGroup)}arrowLoopClick(e,t){this.$emit("notifyHeardBeat",u.util.clone(e)),this.currentHeardBeat.heardBeat=e,this.currentHeardBeat.ele=t,this.drawHeardBeatLine()}drawHeardBeatLine(e=0){var r,l,n,h,d,g;if(!this.currentHeardBeat.heardBeat)return;(r=this.heardBeatLineGroup)==null||r.removeAll(),(l=this.sceneIns)==null||l.remove(this.heardBeatLineGroup);let t=this.formatEcgData.processedData.otherParams.AnalyseValue[this.currentHeardBeat.heardBeat.index].KeyPosByBeat,i=0,s=this.getRednerPoints(),a=this.getAddRednerPoints(),o;for(const w in t)if(["Pstart","Pend","QRSstart","QRSend","Tstart","Tend"].includes(w)&&Object.prototype.hasOwnProperty.call(t,w)){i=(t[w]-this.slidingWindowInfo.startInd)*(((n=this.formatEcgData)==null?void 0:n.step)||0)*this.sceneMagnification;e:for(let p=0;p<s.length;p++)if(!(this.isLeadOff(p)||this.isLeadDel(p))){if(e>t[w]||!this.leadModel.isContinuous&&t[w]-this.slidingWindowInfo.startInd>(this.slidingWindowInfo.points||0)||(o=s[p],this.leadModel.isContinuous&&p>this.leadModel.line-1))break e;(h=this.heardBeatLineGroup)==null||h.add(this.createHeardBeatLine(o.pos[0]+i,o.pos[1]))}e:for(let p=0;p<a.length;p++)if(!(this.isLeadOff(this.longLeadConfig.leadIdxs[p])&&this.isLeadDel(this.longLeadConfig.leadIdxs[p]))){if(e>t[w])break e;o=a[p],(d=this.heardBeatLineGroup)==null||d.add(this.createHeardBeatLine(o.pos[0]+i,o.pos[1]))}}(g=this.sceneIns)==null||g.add(this.heardBeatLineGroup),t=null,s=null,a=null}createHeardBeatLine(e,t){return new u.Line({cursor:"",shape:{x1:e,y1:t-10,x2:e,y2:t+10},style:{stroke:"blue",lineWidth:1}})}nativeScrollFunc(e){console.log("event",e,e.target.scrollLeft),this.scrollCommon(e.target.scrollLeft||0)}handleScroll(e,t,i){t.type==="horizontal"&&(t.scrollLeft=t.scrollLeft||0,this.scrollCommon(t.scrollLeft))}scrollCommon(e){var i;if(this.sceneIsMoveUpDown)return;const t=D.getPointIdxForPx(e,(((i=this.formatEcgData)==null?void 0:i.step)||1)*this.sceneMagnification);this.rulerHistorySlidIdxs=t,this.scrollWaveFrom(t),this.scrollRuler(t),this.scrollArrow(t),this.$emit("notifyScrollPointIdx",t)}scrollWaveFrom(e){var s,a,o,r,l,n;this.slidingWindowInfo.startInd=e,this.slidingWindowInfo.endInd=e+(this.slidingWindowInfo.points||0),this.addSlidingWindowInfo.startInd=e,this.addSlidingWindowInfo.endInd=e+(this.addSlidingWindowInfo.points||0);let t=this.getRednerPoints(),i=this.getAddRednerPoints();this.waveDataCopy=t,this.addWaveDataCopy=i,(s=this.rowAndColwaveFromGroup)==null||s.eachChild((h,d)=>{d=d||0,h.attr({shape:{points:t[d].data.map(([g,w])=>[g+t[d].pos[0],w+t[d].pos[1]])}})}),(a=this.addwaveFromGroup)==null||a.eachChild((h,d)=>{d=d||0,h.attr({shape:{points:i[d].data.map(([g,w])=>[g+i[d].pos[0],w+i[d].pos[1]])}})}),this.leadModel.isShowPacing&&((r=(o=this.formatEcgData)==null?void 0:o.processedData.otherParams.PacingData)==null?void 0:r.length)&&((n=(l=this.pacingGroup)==null?void 0:l.childOfName("0_0"))==null||n.attr({shape:{points:this.getPacinfPoints(this.leadHeadConfig.leadHedeWidth,this.canvasContainer.height-this.drawBottomPacH)}})),t=null,i=null}scrollRuler(e){var i,s,a;(i=this.rulerGroup)==null||i.removeAll(),(s=this.sceneIns)==null||s.remove(this.rulerGroup);const t=D.getDataLenTimes(this.isSingleMode?0:e,((a=this.formatEcgData)==null?void 0:a.processedData.otherParams.SampleRate)||0)/1e3;this.drawRuler(t)}scrollArrow(e){var t,i;(t=this.arrowGroup)==null||t.removeAll(),(i=this.sceneIns)==null||i.remove(this.arrowGroup),this.drawLoopArrow(e),this.drawHeardBeatLine(e)}};f([m.Prop({default:()=>.04})],exports.default.prototype,"zoomStep",2);f([m.Prop({default:()=>!0})],exports.default.prototype,"supportTwoFingerZoom",2);f([m.Prop({default:()=>""})],exports.default.prototype,"prefixId",2);f([m.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"width",2);f([m.Prop({required:!0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"height",2);f([m.Prop({default:0,validator:e=>typeof e=="number"})],exports.default.prototype,"MXEnlargeWaveWidth",2);f([m.Prop({default:()=>D.LeadNameTexts})],exports.default.prototype,"LeadNameTextsPorps",2);f([m.Prop({default:0,type:Number,validator:e=>typeof e=="number"})],exports.default.prototype,"MXEnlargeWaveHeight",2);f([m.Prop({required:!0})],exports.default.prototype,"gridConfig",2);f([m.Prop({default:5,type:Number})],exports.default.prototype,"cellPoints",2);f([m.Prop({required:!0})],exports.default.prototype,"conventionalECGConfig",2);f([m.Prop({default:()=>({leadHedeWidth:20,leadHedeColor:"#000",leadHedeLineWidth:2})})],exports.default.prototype,"leadHeadConfig",2);f([m.Prop({required:!0})],exports.default.prototype,"formatEcgData",2);f([m.Prop({required:!0})],exports.default.prototype,"leadModel",2);f([m.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);f([m.Prop({default:5})],exports.default.prototype,"magnification",2);f([m.Prop({default:()=>({leadIdxs:[1,6,10],leadNames:[1,6,10]})})],exports.default.prototype,"longLeadConfig",2);f([m.Prop({default:()=>({isShow:!1,mode:!1,defaultSelect:2,heartrate:!1,interval:!1,qrstCompany:!1,telectricalaxis:!1})})],exports.default.prototype,"heartFight",2);f([m.Prop({default:()=>({isShow:!0,isNativeScroll:!1,scrollPanel:{scrollingY:!1},bar:{keepShow:!0,size:"10px"}})})],exports.default.prototype,"scrollConfig",2);f([m.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"rulerConfig",2);f([m.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"measurRulerConfig",2);f([m.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"paralleRulerConfig",2);f([m.Prop({default:()=>({isShow:!1})})],exports.default.prototype,"magnifierRulerConfig",2);f([m.Prop({default:60})],exports.default.prototype,"ventricularRate",2);f([m.Prop({default:D.AnalysisMode.CompoundWave})],exports.default.prototype,"enlargeWaveMode",2);f([m.Prop({default:()=>[]})],exports.default.prototype,"enlargeGains",2);f([m.Prop({default:()=>[]})],exports.default.prototype,"enlargeSpeeds",2);f([m.Prop({default:()=>({defaultSelect:1})})],exports.default.prototype,"singleModeInfo",2);f([m.Prop({default:!0})],exports.default.prototype,"isMXEnlargeWaveShow",2);f([m.Prop({default:!1})],exports.default.prototype,"isSyncAnalyseValueCheck",2);f([D.throttling(100)],exports.default.prototype,"sceneInsMousemove",1);f([D.throttling(200)],exports.default.prototype,"nativeScrollFunc",1);f([D.throttling(200)],exports.default.prototype,"handleScroll",1);exports.default=f([X.default({name:"Methods"})],exports.default);
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const h=require("../../../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"),m=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),D=require("../../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js"),P=require("@costy-plus/utils"),d=require("zrender"),x=require("../../BackgroundGrid/index2.js"),F=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},G=F(_);var j=Object.defineProperty,B=Object.getOwnPropertyDescriptor,a=(t,e,o,r)=>{for(var i=r>1?void 0:r?B(e,o):e,n=t.length-1,l;n>=0;n--)(l=t[n])&&(i=(r?l(e,o,i):l(i))||i);return r&&i&&j(e,o,i),i};exports.default=class extends G.default{constructor(){super(...arguments),this.AssistCtx=Object.freeze(null),this.sceneIns=Object.freeze(null),this.waveFormGroup=Object.freeze(null),this.arrowGroup=Object.freeze(null),this.scrollIdx=Object.freeze(0),this.currentHeardBeat=Object.freeze({heardBeat:null,ele:null}),this.slidingWindowInfo=Object.freeze({}),this.vuescrollWH={width:0,height:0}}get canvasContainer(){var t;return{width:this.width,height:this.height-(this.vuescrollConfig.isShow&&parseInt(`${(t=this.vuescrollConfig.bar)==null?void 0:t.size}`)||0)||0}}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchFormatData(){this.repaint()}repaint(){var t,e;(t=this.sceneIns)==null||t.clear(),(e=this.sceneIns)==null||e.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.combinationDrawing()}destroyed(){var t,e,o;(t=this.waveFormGroup)==null||t.removeAll(),(e=this.arrowGroup)==null||e.removeAll(),(o=this.sceneIns)==null||o.dispose()}created(){this.initConfig()}initConfig(){this.slidingWindowInfo={points:0,startInd:0,endInd:0},this.currentHeardBeat={heardBeat:null,ele:null},this.vuescrollWH.width=this.width,this.vuescrollWH.height=this.height,this.waveFormGroup=new d.Group({name:"waveForm"}),this.arrowGroup=new d.Group({name:"arrowGroup"}),this.initSlidingWindowInfo()}mounted(){this.initWaveFormPeer(),this.combinationDrawing()}combinationDrawing(){this.drawWaveFrom(),this.drawLoopArrow(this.scrollIdx)}initWaveFormPeer(){const t=document.getElementById("wave-from-box");this.sceneIns=d.init(t,{width:this.canvasContainer.width,height:this.canvasContainer.height,devicePixelRatio:2});const e=document.getElementById("MXRoutine_Grid");this.AssistCtx=e.getContext("2d")}initSlidingWindowInfo(){var o,r;const t=((o=this.formatData)==null?void 0:o.step)||0;this.vuescrollConfig.isShow&&(this.vuescrollWH.width=this.canvasContainer.width+(((r=this.formatData)==null?void 0:r.dataPxLen)||0)-this.width);const e=Math.ceil(this.width/t);this.slidingWindowInfo={points:e,startInd:0,endInd:e}}drawWaveFrom(){var t;this.createLeadName(),this.createWaveFrom(),(t=this.sceneIns)==null||t.add(this.waveFormGroup)}createLeadName(){var t;(t=this.sceneIns)==null||t.add(new d.Text({style:{x:this.leadConfig.fontSize*.5,y:this.canvasContainer.height/2+this.leadConfig.fontSize*2,text:this.LeadNameTextsPorps[1],fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily}}))}getRednerPoints(){var r;const t=[],e=this.canvasContainer.height/2;let o=[];for(let i=1;i<=1;i++)o=((r=this.formatData)==null?void 0:r.processedData.handleData.Data[i])||[],t.push({pos:[0,e],startInd:this.slidingWindowInfo.startInd||0,endInd:this.slidingWindowInfo.endInd||0,data:o.slice(this.slidingWindowInfo.startInd,this.slidingWindowInfo.endInd).map((n,l)=>{var u;return[l*(((u=this.formatData)==null?void 0:u.step)||0),-n]})});return t}createWaveFrom(){var e,o;(e=this.waveFormGroup)==null||e.removeAll();let t=this.getRednerPoints();for(let r=0;r<t.length;r++)(o=this.waveFormGroup)==null||o.add(new d.Polyline({cursor:"",shape:{points:t[r].data.map(([i,n])=>[i+t[r].pos[0],n+t[r].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}}));t=null}drawLoopArrow(t=0){var i,n,l,u,w,v,g,I,y,W;(i=this.arrowGroup)==null||i.removeAll(),this.currentHeardBeat.heardBeat===null&&(this.currentHeardBeat.heardBeat=((n=this.formatData)==null?void 0:n.heartBeatPosition[0])||null,this.$emit("notifyHeardBeat",d.util.clone(((l=this.formatData)==null?void 0:l.heartBeatPosition[0])||null)));let e=0;const o=20;let r=0;for(let p=0;p<(((u=this.formatData)==null?void 0:u.heartBeatPosition)||[]).length;p++){const s=(w=this.formatData)==null?void 0:w.heartBeatPosition[p];if(r=((s==null?void 0:s.position)||0)-t,!(t>((s==null?void 0:s.position)||0))){if(((s==null?void 0:s.position)||0)-this.slidingWindowInfo.startInd>(this.slidingWindowInfo.points||0))break;e=r*(((v=this.formatData)==null?void 0:v.step)||0)-9.5,(y=this.arrowGroup)==null||y.add(new d.Polygon({name:"arrow_box",shape:{points:[[4+e,0+o],[15+e,0+o],[15+e,10+o],[19+e,10+o],[9.5+e,22+o],[0+e,10+o],[4+e,10+o],[4+e,0+o]]},style:{fill:((I=(g=this.currentHeardBeat)==null?void 0:g.heardBeat)==null?void 0:I.index)===(s==null?void 0:s.index)?"blue":"#ccc"},onclick:f=>{var C;f.target.attr({style:{fill:"blue"}}),(C=this.arrowGroup)==null||C.children().filter(c=>c.name==="arrow_box").forEach(c=>{c.id!==f.target.id&&c.attr({style:{fill:"#ccc"}})}),this.arrowLoopClick(s,f.target)}}))}}(W=this.sceneIns)==null||W.add(this.arrowGroup)}arrowLoopClick(t,e){this.$emit("notifyHeardBeat",d.util.clone(t)),this.currentHeardBeat.heardBeat=t,this.currentHeardBeat.ele=e}handleScroll(t,e,o){var r;if(e.type==="horizontal"){e.scrollLeft=e.scrollLeft||0;const i=P.getPointIdxForPx(e.scrollLeft,((r=this.formatData)==null?void 0:r.step)||1);this.scrollIdx=i,this.scrollWaveFrom(i),this.scrollArrow(i),this.$emit("notifyScrollPointIdx",i)}}scrollWaveFrom(t){var o;this.slidingWindowInfo.startInd=t,this.slidingWindowInfo.endInd=t+(this.slidingWindowInfo.points||0);let e=this.getRednerPoints();(o=this.waveFormGroup)==null||o.eachChild((r,i)=>{i=i||0,r.attr({shape:{points:e[i].data.map(([n,l])=>[n+e[i].pos[0],l+e[i].pos[1]])}})}),e=null}scrollArrow(t){var e,o;(e=this.arrowGroup)==null||e.removeAll(),(o=this.sceneIns)==null||o.remove(this.arrowGroup),this.drawLoopArrow(t)}};a([h.Prop({default:()=>P.LeadNameTexts})],exports.default.prototype,"LeadNameTextsPorps",2);a([h.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"width",2);a([h.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"height",2);a([h.Prop({required:!0})],exports.default.prototype,"gridConfig",2);a([h.Prop({default:()=>({isShow:!0,scrollPanel:{scrollingY:!1},bar:{keepShow:!0,size:"10px"}})})],exports.default.prototype,"vuescrollConfig",2);a([h.Prop({required:!0})],exports.default.prototype,"formatData",2);a([h.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);a([m.Watch("width")],exports.default.prototype,"watchWidth",1);a([m.Watch("height")],exports.default.prototype,"watchHeight",1);a([m.Watch("formatData",{deep:!0})],exports.default.prototype,"watchFormatData",1);exports.default=a([b.default({name:"Routine",components:{vueScroll:D.default,MXBackgroundGrid:x.default}})],exports.default);
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const h=require("../../../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"),m=require("../../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),D=require("../../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js"),P=require("@costy-plus/utils"),d=require("zrender"),x=require("../../BackgroundGrid/index2.js"),F=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},G=F(_);var j=Object.defineProperty,B=Object.getOwnPropertyDescriptor,a=(t,e,o,r)=>{for(var i=r>1?void 0:r?B(e,o):e,n=t.length-1,l;n>=0;n--)(l=t[n])&&(i=(r?l(e,o,i):l(i))||i);return r&&i&&j(e,o,i),i};exports.default=class extends G.default{constructor(){super(...arguments),this.AssistCtx=Object.freeze(null),this.sceneIns=Object.freeze(null),this.waveFormGroup=Object.freeze(null),this.arrowGroup=Object.freeze(null),this.scrollIdx=Object.freeze(0),this.currentHeardBeat=Object.freeze({heardBeat:null,ele:null}),this.slidingWindowInfo=Object.freeze({}),this.vuescrollWH={width:0,height:0}}get canvasContainer(){var t;return{width:this.width,height:this.height-(this.vuescrollConfig.isShow&&parseInt(`${(t=this.vuescrollConfig.bar)==null?void 0:t.size}`)||0)||0}}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchFormatData(){this.repaint()}repaint(){var t,e;(t=this.sceneIns)==null||t.clear(),(e=this.sceneIns)==null||e.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.combinationDrawing()}destroyed(){var t,e,o;(t=this.waveFormGroup)==null||t.removeAll(),(e=this.arrowGroup)==null||e.removeAll(),(o=this.sceneIns)==null||o.dispose()}created(){this.initConfig()}initConfig(){this.slidingWindowInfo={points:0,startInd:0,endInd:0},this.currentHeardBeat={heardBeat:null,ele:null},this.vuescrollWH.width=this.width,this.vuescrollWH.height=this.height,this.waveFormGroup=new d.Group({name:"waveForm"}),this.arrowGroup=new d.Group({name:"arrowGroup"}),this.initSlidingWindowInfo()}mounted(){this.initWaveFormPeer(),this.combinationDrawing()}combinationDrawing(){this.drawWaveFrom(),this.drawLoopArrow(this.scrollIdx)}initWaveFormPeer(){const t=document.getElementById("wave-from-box");this.sceneIns=d.init(t,{width:this.canvasContainer.width,height:this.canvasContainer.height,devicePixelRatio:2});const e=document.getElementById("MXRoutine_Grid");this.AssistCtx=e.getContext("2d")}initSlidingWindowInfo(){var o,r;const t=((o=this.formatData)==null?void 0:o.step)||0;this.vuescrollConfig.isShow&&(this.vuescrollWH.width=this.canvasContainer.width+(((r=this.formatData)==null?void 0:r.dataPxLen)||0)-this.width);const e=Math.ceil(this.width/t);this.slidingWindowInfo={points:e,startInd:0,endInd:e}}drawWaveFrom(){var t;this.createLeadName(),this.createWaveFrom(),(t=this.sceneIns)==null||t.add(this.waveFormGroup)}createLeadName(){var t;(t=this.sceneIns)==null||t.add(new d.Text({style:{x:this.leadConfig.fontSize*.5,y:this.canvasContainer.height/2+this.leadConfig.fontSize*2,text:this.LeadNameTextsPorps[1],fontSize:this.leadConfig.fontSize,fill:this.leadConfig.lineColor,fontFamily:this.leadConfig.fontFamily}}))}getRednerPoints(){var r;const t=[],e=this.canvasContainer.height/2;let o=[];for(let i=1;i<=1;i++)o=((r=this.formatData)==null?void 0:r.processedData.handleData.Data[i])||[],t.push({pos:[0,e],startInd:this.slidingWindowInfo.startInd||0,endInd:this.slidingWindowInfo.endInd||0,data:o.slice(this.slidingWindowInfo.startInd,this.slidingWindowInfo.endInd).map((n,l)=>{var u;return[l*(((u=this.formatData)==null?void 0:u.step)||0),-n]})});return t}createWaveFrom(){var e,o;(e=this.waveFormGroup)==null||e.removeAll();let t=this.getRednerPoints();for(let r=0;r<t.length;r++)(o=this.waveFormGroup)==null||o.add(new d.Polyline({cursor:"",shape:{points:t[r].data.map(([i,n])=>[i+t[r].pos[0],n+t[r].pos[1]])},style:{stroke:this.leadConfig.lineColor,lineWidth:this.leadConfig.lineWidth}}));t=null}drawLoopArrow(t=0){var i,n,l,u,w,v,g,I,y,W;(i=this.arrowGroup)==null||i.removeAll(),this.currentHeardBeat.heardBeat===null&&(this.currentHeardBeat.heardBeat=((n=this.formatData)==null?void 0:n.heartBeatPosition[0])||null,this.$emit("notifyHeardBeat",d.util.clone(((l=this.formatData)==null?void 0:l.heartBeatPosition[0])||null)));let e=0;const o=20;let r=0;for(let p=0;p<(((u=this.formatData)==null?void 0:u.heartBeatPosition)||[]).length;p++){const s=(w=this.formatData)==null?void 0:w.heartBeatPosition[p];if(r=((s==null?void 0:s.position)||0)-t,!(t>((s==null?void 0:s.position)||0))){if(((s==null?void 0:s.position)||0)-this.slidingWindowInfo.startInd>(this.slidingWindowInfo.points||0))break;e=r*(((v=this.formatData)==null?void 0:v.step)||0)-9.5,(y=this.arrowGroup)==null||y.add(new d.Polygon({name:"arrow_box",shape:{points:[[4+e,0+o],[15+e,0+o],[15+e,10+o],[19+e,10+o],[9.5+e,22+o],[0+e,10+o],[4+e,10+o],[4+e,0+o]]},style:{fill:((I=(g=this.currentHeardBeat)==null?void 0:g.heardBeat)==null?void 0:I.index)===(s==null?void 0:s.index)?"blue":"#ccc"},onclick:f=>{var C;f.target.attr({style:{fill:"blue"}}),(C=this.arrowGroup)==null||C.children().filter(c=>c.name==="arrow_box").forEach(c=>{c.id!==f.target.id&&c.attr({style:{fill:"#ccc"}})}),this.arrowLoopClick(s,f.target)}}))}}(W=this.sceneIns)==null||W.add(this.arrowGroup)}arrowLoopClick(t,e){this.$emit("notifyHeardBeat",d.util.clone(t)),this.currentHeardBeat.heardBeat=t,this.currentHeardBeat.ele=e}handleScroll(t,e,o){var r;if(e.type==="horizontal"){e.scrollLeft=e.scrollLeft||0;const i=P.getPointIdxForPx(e.scrollLeft,((r=this.formatData)==null?void 0:r.step)||1);this.scrollIdx=i,this.scrollWaveFrom(i),this.scrollArrow(i),this.$emit("notifyScrollPointIdx",i)}}scrollWaveFrom(t){var o;this.slidingWindowInfo.startInd=t,this.slidingWindowInfo.endInd=t+(this.slidingWindowInfo.points||0);let e=this.getRednerPoints();(o=this.waveFormGroup)==null||o.eachChild((r,i)=>{i=i||0,r.attr({shape:{points:e[i].data.map(([n,l])=>[n+e[i].pos[0],l+e[i].pos[1]])}})}),e=null}scrollArrow(t){var e,o;(e=this.arrowGroup)==null||e.removeAll(),(o=this.sceneIns)==null||o.remove(this.arrowGroup),this.drawLoopArrow(t)}};a([h.Prop({default:()=>P.LeadNameTexts})],exports.default.prototype,"LeadNameTextsPorps",2);a([h.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"width",2);a([h.Prop({required:!0,type:Number,validator:t=>typeof t=="number"})],exports.default.prototype,"height",2);a([h.Prop({required:!0})],exports.default.prototype,"gridConfig",2);a([h.Prop({default:()=>({isShow:!0,scrollPanel:{scrollingY:!1},bar:{keepShow:!0,size:"10px"}})})],exports.default.prototype,"vuescrollConfig",2);a([h.Prop({required:!0})],exports.default.prototype,"formatData",2);a([h.Prop({default:()=>({lineColor:"#000",lineWidth:1,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1",fontSize:15})})],exports.default.prototype,"leadConfig",2);a([m.Watch("width")],exports.default.prototype,"watchWidth",1);a([m.Watch("height")],exports.default.prototype,"watchHeight",1);a([m.Watch("formatData",{deep:!0})],exports.default.prototype,"watchFormatData",1);exports.default=a([b.default({name:"Routine",components:{vueScroll:D.default,MXBackgroundGrid:x.default}})],exports.default);
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const 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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const a=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),u=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.6.14/node_modules/vuescroll/dist/vuescroll-native.js"),l=require("../BackgroundGrid/index2.js"),h=require("./method.js");var p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,o=(e,t,s,i)=>{for(var r=i>1?void 0:i?m(t,s):t,n=e.length-1,d;n>=0;n--)(d=e[n])&&(r=(i?d(t,s,r):d(r))||r);return i&&r&&p(t,s,r),r};exports.default=class extends c.mixins(h.default){constructor(){super(...arguments),this.repaintTimer=Object.freeze(null)}watchVuescrollConfig(){this.repaint()}watchWaveConfigs(){this.repaint()}watchWaveLists(){this.repaint()}watchLeadHeadConfig(){var e,t;(e=this.leadHeadGroup)==null||e.removeAll(),(t=this.sceneIns)==null||t.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchLongLeadConfig(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}watchPosStart(){this.registPostStart()}destroyed(){this.repaintTimer&&clearTimeout(this.repaintTimer)}repaint(){this.repaintTimer&&clearTimeout(this.repaintTimer),this.repaintTimer=setTimeout(()=>{var e,t;(e=this.sceneIns)==null||e.clear(),(t=this.sceneIns)==null||t.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.initCreatedConfig(),this.combinationDrawing()},200)}created(){this.initCreatedConfig()}mounted(){this.init()}};o([a.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);o([a.Watch("waveConfigs",{deep:!0})],exports.default.prototype,"watchWaveConfigs",1);o([a.Watch("waveLists",{deep:!0})],exports.default.prototype,"watchWaveLists",1);o([a.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);o([a.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);o([a.Watch("width")],exports.default.prototype,"watchWidth",1);o([a.Watch("height")],exports.default.prototype,"watchHeight",1);o([a.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);o([a.Watch("posStart")],exports.default.prototype,"watchPosStart",1);exports.default=o([c.default({name:"monitorWave",components:{vueScroll:u.default,MXBackgroundGrid:l.default}})],exports.default);
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const 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_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const a=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),u=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js"),l=require("../BackgroundGrid/index2.js"),h=require("./method.js");var p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,o=(e,t,s,i)=>{for(var r=i>1?void 0:i?m(t,s):t,n=e.length-1,d;n>=0;n--)(d=e[n])&&(r=(i?d(t,s,r):d(r))||r);return i&&r&&p(t,s,r),r};exports.default=class extends c.mixins(h.default){constructor(){super(...arguments),this.repaintTimer=Object.freeze(null)}watchVuescrollConfig(){this.repaint()}watchWaveConfigs(){this.repaint()}watchWaveLists(){this.repaint()}watchLeadHeadConfig(){var e,t;(e=this.leadHeadGroup)==null||e.removeAll(),(t=this.sceneIns)==null||t.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchLongLeadConfig(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}watchPosStart(){this.registPostStart()}destroyed(){this.repaintTimer&&clearTimeout(this.repaintTimer)}repaint(){this.repaintTimer&&clearTimeout(this.repaintTimer),this.repaintTimer=setTimeout(()=>{var e,t;(e=this.sceneIns)==null||e.clear(),(t=this.sceneIns)==null||t.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.initCreatedConfig(),this.combinationDrawing()},200)}created(){this.initCreatedConfig()}mounted(){this.init()}};o([a.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);o([a.Watch("waveConfigs",{deep:!0})],exports.default.prototype,"watchWaveConfigs",1);o([a.Watch("waveLists",{deep:!0})],exports.default.prototype,"watchWaveLists",1);o([a.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);o([a.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);o([a.Watch("width")],exports.default.prototype,"watchWidth",1);o([a.Watch("height")],exports.default.prototype,"watchHeight",1);o([a.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);o([a.Watch("posStart")],exports.default.prototype,"watchPosStart",1);exports.default=o([c.default({name:"monitorWave",components:{vueScroll:u.default,MXBackgroundGrid:l.default}})],exports.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "costy-plus",
3
- "version": "1.1.12-0",
3
+ "version": "1.1.13-0",
4
4
  "main": "dist/lib/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",