costy-plus 1.1.26-0 → 1.1.28-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.
Files changed (37) hide show
  1. package/dist/es/index.js +34 -32
  2. package/dist/es/src/CommonWaveForm/index.vue_vue_type_template_lang.js +8 -4
  3. package/dist/es/src/CommonWaveForm/method.d.ts +5 -0
  4. package/dist/es/src/CommonWaveForm/method.js +28 -21
  5. package/dist/es/src/CommonWaveFormQxc/index.js +6 -0
  6. package/dist/es/src/CommonWaveFormQxc/index.vue.d.ts +22 -0
  7. package/dist/es/src/CommonWaveFormQxc/index.vue_vue_type_script_lang.js +122 -0
  8. package/dist/es/src/CommonWaveFormQxc/index.vue_vue_type_template_lang.js +107 -0
  9. package/dist/es/src/CommonWaveFormQxc/index2.js +24 -0
  10. package/dist/es/src/CommonWaveFormQxc/interface.d.ts +210 -0
  11. package/dist/es/src/CommonWaveFormQxc/method.d.ts +268 -0
  12. package/dist/es/src/CommonWaveFormQxc/method.js +1081 -0
  13. package/dist/es/src/CommonWaveFormQxc/style/index.css +52 -0
  14. package/dist/es/src/MeasuringRuler/index.vue.d.ts +2 -1
  15. package/dist/es/src/MeasuringRuler/index.vue_vue_type_script_lang.js +60 -48
  16. package/dist/es/src/index.d.ts +1 -0
  17. package/dist/es/src/index.js +34 -32
  18. package/dist/es/types/MeasuringRuler.d.ts +3 -1
  19. package/dist/lib/index.js +1 -1
  20. package/dist/lib/src/CommonWaveForm/index.vue_vue_type_template_lang.js +1 -1
  21. package/dist/lib/src/CommonWaveForm/method.d.ts +5 -0
  22. package/dist/lib/src/CommonWaveForm/method.js +1 -1
  23. package/dist/lib/src/CommonWaveFormQxc/index.js +1 -0
  24. package/dist/lib/src/CommonWaveFormQxc/index.vue.d.ts +22 -0
  25. package/dist/lib/src/CommonWaveFormQxc/index.vue_vue_type_script_lang.js +1 -0
  26. package/dist/lib/src/CommonWaveFormQxc/index.vue_vue_type_template_lang.js +1 -0
  27. package/dist/lib/src/CommonWaveFormQxc/index2.js +1 -0
  28. package/dist/lib/src/CommonWaveFormQxc/interface.d.ts +210 -0
  29. package/dist/lib/src/CommonWaveFormQxc/method.d.ts +268 -0
  30. package/dist/lib/src/CommonWaveFormQxc/method.js +1 -0
  31. package/dist/lib/src/CommonWaveFormQxc/style/index.css +52 -0
  32. package/dist/lib/src/MeasuringRuler/index.vue.d.ts +2 -1
  33. package/dist/lib/src/MeasuringRuler/index.vue_vue_type_script_lang.js +3 -3
  34. package/dist/lib/src/index.d.ts +1 -0
  35. package/dist/lib/src/index.js +1 -1
  36. package/dist/lib/types/MeasuringRuler.d.ts +3 -1
  37. package/package.json +33 -33
package/dist/es/index.js CHANGED
@@ -3,22 +3,23 @@ import { default as m } from "./src/Text/index.js";
3
3
  import { default as l } from "./src/BackgroundGrid/index.js";
4
4
  import { default as p } from "./src/EcgWave/index.js";
5
5
  import { default as d } from "./src/CommonWaveForm/index.js";
6
- import { default as M } from "./src/monitorWave/index.js";
7
- import { default as i } from "./src/MeasuringRuler/index.js";
8
- import { default as v } from "./src/MeasuringRulerMore/index.js";
9
- import { default as g } from "./src/ParallelRuler/index.js";
10
- import { default as E } from "./src/EnlargeWave/index.js";
11
- import { default as T } from "./src/EnlargeWaveView/index.js";
12
- import { default as R } from "./src/FCGWave/index.js";
13
- import { default as F } from "./src/HFECGWave/index.js";
14
- import { default as b } from "./src/ELTree/index.js";
15
- import { default as y } from "./src/TurnPage/index.js";
16
- import { default as H } from "./src/Menu/index.js";
17
- import { default as U } from "./src/SideBar/index.js";
18
- import { default as $ } from "./src/MedexTab/index.js";
19
- import { default as j } from "./src/MedexButton/index.js";
20
- import { default as z } from "./src/MedexDialog/index.js";
21
- import { default as I } from "./src/UEditor/index.js";
6
+ import { default as M } from "./src/CommonWaveFormQxc/index.js";
7
+ import { default as i } from "./src/monitorWave/index.js";
8
+ import { default as v } from "./src/MeasuringRuler/index.js";
9
+ import { default as g } from "./src/MeasuringRulerMore/index.js";
10
+ import { default as E } from "./src/ParallelRuler/index.js";
11
+ import { default as T } from "./src/EnlargeWave/index.js";
12
+ import { default as F } from "./src/EnlargeWaveView/index.js";
13
+ import { default as k } from "./src/FCGWave/index.js";
14
+ import { default as b } from "./src/HFECGWave/index.js";
15
+ import { default as y } from "./src/ELTree/index.js";
16
+ import { default as H } from "./src/TurnPage/index.js";
17
+ import { default as S } from "./src/Menu/index.js";
18
+ import { default as V } from "./src/SideBar/index.js";
19
+ import { default as h } from "./src/MedexTab/index.js";
20
+ import { default as q } from "./src/MedexButton/index.js";
21
+ import { default as A } from "./src/MedexDialog/index.js";
22
+ import { default as J } from "./src/UEditor/index.js";
22
23
  export * from "zrender";
23
24
  const r = {
24
25
  install: (a) => {
@@ -28,24 +29,25 @@ const r = {
28
29
  };
29
30
  export {
30
31
  l as MXBackgroundGrid,
31
- j as MXButton,
32
+ q as MXButton,
33
+ M as MXCommonWaveFormQxc,
32
34
  d as MXCommonWaveWaveComponents,
33
- z as MXDialog,
35
+ A as MXDialog,
34
36
  p as MXECGWaveComponents,
35
- E as MXEnlargeWave,
36
- T as MXEnlargeWaveView,
37
- R as MXFCGWaveComponents,
38
- F as MXHFECGWaveComponents,
39
- i as MXMeasuringRuler,
40
- H as MXMenuComponents,
41
- M as MXMonitorWaveComponents,
42
- g as MXParallelRuler,
43
- U as MXSideBar,
44
- $ as MXTab,
37
+ T as MXEnlargeWave,
38
+ F as MXEnlargeWaveView,
39
+ k as MXFCGWaveComponents,
40
+ b as MXHFECGWaveComponents,
41
+ v as MXMeasuringRuler,
42
+ S as MXMenuComponents,
43
+ i as MXMonitorWaveComponents,
44
+ E as MXParallelRuler,
45
+ V as MXSideBar,
46
+ h as MXTab,
45
47
  m as MXText,
46
- b as MXTree,
47
- y as MXTurnPage,
48
- I as MXUEditor,
49
- v as MeasuringRulerMore,
48
+ y as MXTree,
49
+ H as MXTurnPage,
50
+ J as MXUEditor,
51
+ g as MeasuringRulerMore,
50
52
  r as default
51
53
  };
@@ -1,4 +1,4 @@
1
- var l = function() {
1
+ var t = function() {
2
2
  var e = this, a = e.$createElement, i = e._self._c || a;
3
3
  return i("div", {
4
4
  style: {
@@ -17,6 +17,7 @@ var l = function() {
17
17
  "layer-id": e.prefixId + "MXGrid"
18
18
  }
19
19
  }), e.measurRulerConfig.isShow ? i("MXMeasuringRuler", e._g({
20
+ ref: e.prefixId + "_measuringRuler",
20
21
  staticClass: "measuring-ruler",
21
22
  attrs: {
22
23
  config: e.measurRulerConfig.config,
@@ -26,6 +27,9 @@ var l = function() {
26
27
  "speed-value": e.measurRulerConfig.speed || 0,
27
28
  sens: e.measurRulerConfig.sens || 0,
28
29
  "prefix-id": e.prefixId
30
+ },
31
+ on: {
32
+ notifyMeasurintRectPostion: e.handleNotifyMeasurintRectPostion
29
33
  }
30
34
  }, e.$listeners)) : e._e(), e.paralleRulerConfig.isShow ? i("MXParallelRuler", e._g({
31
35
  staticClass: "parallel-ruler",
@@ -96,8 +100,8 @@ var l = function() {
96
100
  height: `${e.vuescrollWH.height}px`
97
101
  }
98
102
  })])], 1)], 1);
99
- }, t = [];
103
+ }, l = [];
100
104
  export {
101
- l as render,
102
- t as staticRenderFns
105
+ t as render,
106
+ l as staticRenderFns
103
107
  };
@@ -162,6 +162,11 @@ export default class Methods extends Vue {
162
162
  protected init(): void;
163
163
  protected registPostStart(): void;
164
164
  protected resetScroll(val?: number): void;
165
+ protected handleNotifyMeasurintRectPostion(position: {
166
+ x: number;
167
+ y: number;
168
+ yEnd: number;
169
+ }): void;
165
170
  protected combinationDrawing(isInitConfigInfo?: boolean): void;
166
171
  /** 计算心拍 */
167
172
  protected calcHeartBeatPositions(): void;
@@ -1,21 +1,21 @@
1
1
  var V = Object.defineProperty, q = Object.defineProperties;
2
- var Y = Object.getOwnPropertyDescriptors;
3
- var $ = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
2
+ var _ = Object.getOwnPropertyDescriptors;
3
+ var j = Object.getOwnPropertySymbols;
4
+ var Y = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
5
  var T = (e, t, i) => t in e ? V(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, W = (e, t) => {
6
6
  for (var i in t || (t = {}))
7
- _.call(t, i) && T(e, i, t[i]);
8
- if ($)
9
- for (var i of $(t))
7
+ Y.call(t, i) && T(e, i, t[i]);
8
+ if (j)
9
+ for (var i of j(t))
10
10
  E.call(t, i) && T(e, i, t[i]);
11
11
  return e;
12
- }, k = (e, t) => q(e, Y(t));
12
+ }, k = (e, t) => q(e, _(t));
13
13
  import K from "vue";
14
14
  import Q from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
15
15
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
16
16
  import { Prop as w } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Prop.js";
17
17
  import { flattenDeep as U, max as Z, min as J } from "lodash";
18
- import { throttling as X, getStepForSpeed as H, getPrintLengthToPx as ee, getSens as M, getDataLenTimes as N, getPointIdxForPx as L, getActualY as x, calcMs as te, calcBpm as ie } from "@costy-plus/utils";
18
+ import { throttling as X, getStepForSpeed as H, getPrintLengthToPx as ee, getSens as L, getDataLenTimes as N, getPointIdxForPx as M, getActualY as x, calcMs as te, calcBpm as ie } from "@costy-plus/utils";
19
19
  import * as se from "zrender";
20
20
  import { Group as S, Polyline as O, Line as z, Text as y, Polygon as ae, util as oe } from "zrender";
21
21
  var ne = Object.defineProperty, le = Object.getOwnPropertyDescriptor, c = (e, t, i, s) => {
@@ -81,6 +81,10 @@ let u = class extends K {
81
81
  });
82
82
  }) : (this.scrollWaveFrom(e), this.scrollRuler(e), this.scrollArrow(e));
83
83
  }
84
+ handleNotifyMeasurintRectPostion(e) {
85
+ let t = null;
86
+ this.leadModel.isSingleMode && this.singleWaveFromGroup ? (t = (this.singleWaveFromGroup._children || []).find((i) => i.rectContain(e.x, e.y) || i.rectContain(e.x, e.yEnd)), console.log("handleNotifyMeasurintRectPostion333333", t)) : (t = (this.rowAndColwaveFromGroup._children || []).find((i) => i.rectContain(e.x, e.y) || i.rectContain(e.x, e.yEnd)), t || (t = (this.addwaveFromGroup._children || []).find((i) => i.rectContain(e.x, e.y) || i.rectContain(e.x, e.yEnd))), console.log("handleNotifyMeasurintRectPostion44444", t)), t && this.$emit("notifyMeasurintConfig", t.sens);
87
+ }
84
88
  combinationDrawing(e = !0) {
85
89
  e && (this.drawLeadHead(), this.drawColSplitLine(), this.initSlidingWindowInfo(), this.drawRulerNotes()), this.drawWaveFrom();
86
90
  }
@@ -228,7 +232,7 @@ let u = class extends K {
228
232
  this.createLeadHead(
229
233
  0,
230
234
  this.waveConfigs[l - 1].posY || l * this.splitBlockHeight,
231
- M(this.waveConfigs[l - 1].isFixedSquareWaveSize ? this.waveConfigs[l - 1].fixedSquareWaveSizeGain : this.waveConfigs[l - 1].gain, this.gridConfig.cellMg),
235
+ L(this.waveConfigs[l - 1].isFixedSquareWaveSize ? this.waveConfigs[l - 1].fixedSquareWaveSizeGain : this.waveConfigs[l - 1].gain, this.gridConfig.cellMg),
232
236
  t
233
237
  )
234
238
  ));
@@ -239,7 +243,7 @@ let u = class extends K {
239
243
  this.createLeadHead(
240
244
  0,
241
245
  ((o = this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]]) == null ? void 0 : o.posY) || l * this.splitBlockHeight,
242
- M(this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].isFixedSquareWaveSize ? this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].fixedSquareWaveSizeGain : this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].gain, this.gridConfig.cellMg),
246
+ L(this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].isFixedSquareWaveSize ? this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].fixedSquareWaveSizeGain : this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].gain, this.gridConfig.cellMg),
243
247
  t
244
248
  )
245
249
  ));
@@ -310,7 +314,7 @@ let u = class extends K {
310
314
  break e;
311
315
  if ((this.waveConfigs || [])[g - 1 + i].posX !== void 0 && (t = (this.waveConfigs || [])[g - 1 + i].posX), s = (this.waveConfigs || [])[g - 1 + i].leadIdx, s === void 0)
312
316
  break;
313
- a = M((this.waveConfigs || [])[g - 1 + i].isFixedSquareWaveSize ? (this.waveConfigs || [])[g - 1 + i].fixedSquareWaveSizeGain : (this.waveConfigs || [])[g - 1 + i].gain, this.gridConfig.cellMg), (this.waveConfigs || [])[g - 1 + i].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.leadNames[s]) ? (h = this.splitLineGroup) == null || h.add(
317
+ a = L((this.waveConfigs || [])[g - 1 + i].isFixedSquareWaveSize ? (this.waveConfigs || [])[g - 1 + i].fixedSquareWaveSizeGain : (this.waveConfigs || [])[g - 1 + i].gain, this.gridConfig.cellMg), (this.waveConfigs || [])[g - 1 + i].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.leadNames[s]) ? (h = this.splitLineGroup) == null || h.add(
314
318
  this.creatSplitLine(
315
319
  t,
316
320
  ((this.waveConfigs || [])[g - 1 + i].posY || g * this.splitBlockHeight) - (a || 0) / 2 * 0.5,
@@ -377,7 +381,7 @@ let u = class extends K {
377
381
  if (this.leadModel.isContinuous)
378
382
  a = t * 5;
379
383
  else if (!this.leadModel.add && o) {
380
- const d = L(this.splitPoint * (this.leadModel.column || 1), o), r = N(d, this.rulerConfig.sampleRate || 0) / 1e3;
384
+ const d = M(this.splitPoint * (this.leadModel.column || 1), o), r = N(d, this.rulerConfig.sampleRate || 0) / 1e3;
381
385
  a = e + r;
382
386
  }
383
387
  for (let d = e; d <= a; d = +(d + 0.1).toFixed(1))
@@ -418,7 +422,7 @@ let u = class extends K {
418
422
  this.waveConfigs[this.singleModeConfig.defaultSelect].speed,
419
423
  this.gridConfig.cellMg,
420
424
  this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate
421
- ), n = M(this.waveConfigs[this.singleModeConfig.defaultSelect].gain, this.gridConfig.cellMg), h = [], l = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
425
+ ), n = L(this.waveConfigs[this.singleModeConfig.defaultSelect].gain, this.gridConfig.cellMg), h = [], l = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
422
426
  for (let d = 0; d < 1; d++) {
423
427
  e = d * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0;
424
428
  for (let r = 1; r <= l; r++)
@@ -443,6 +447,7 @@ let u = class extends K {
443
447
  this.isLeadDel(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx) || (s = parseInt(`${t / 1e3 / 60}`, 10), a = parseInt(`${t / 1e3 % 60}`, 10), s = a === 60 ? s += 1 : s, s = s === 0 ? "00" : s < 10 ? `0${s}` : s, a = a === 0 || a === 60 ? "00" : a < 10 ? `0${a}` : a, (h = this.singleWaveFromGroup) == null || h.add(new O({
444
448
  cursor: "",
445
449
  name: this.singleModeConfig.defaultSelect + "_" + d,
450
+ sens: e[d].sens,
446
451
  shape: {
447
452
  points: e[d].data.map(([r, g], v) => isNaN(g) ? (o === 0 && (o = v - 1, o = o < 0 ? 0 : o), [
448
453
  e[d].data[o][0] + e[d].pos[0],
@@ -487,7 +492,7 @@ let u = class extends K {
487
492
  this.heartFight.mode && this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = this.heartBeatPosition[this.heartFight.showIdxPai][this.heartFight.defaultSelect] || null, this.drawHeardBeatLine());
488
493
  let t = 0, i = 0;
489
494
  if (this.leadModel.add) {
490
- const C = M(this.waveConfigs[this.longLeadConfig.leadIdxs[0]].gain, this.gridConfig.cellMg);
495
+ const C = L(this.waveConfigs[this.longLeadConfig.leadIdxs[0]].gain, this.gridConfig.cellMg);
491
496
  i = this.loopArrowY.add - (C || 0) - this.splitBlockHeight / 3.5;
492
497
  } else
493
498
  i = 20;
@@ -527,10 +532,10 @@ let u = class extends K {
527
532
  fill: ((g = (r = this.currentHeardBeat) == null ? void 0 : r.heardBeat) == null ? void 0 : g.index) === (f == null ? void 0 : f.index) ? "blue" : "#ccc"
528
533
  },
529
534
  onclick: (R) => {
530
- var j;
535
+ var $;
531
536
  !this.heartFight.mode && !this.heartFight.isClickArrow || (R.target.attr({
532
537
  style: { fill: "blue" }
533
- }), (j = this.arrowGroup) == null || j.children().filter((G) => G.name === "arrow_box").forEach((G) => {
538
+ }), ($ = this.arrowGroup) == null || $.children().filter((G) => G.name === "arrow_box").forEach((G) => {
534
539
  G.id !== R.target.id && G.attr({
535
540
  style: { fill: "#ccc" }
536
541
  });
@@ -668,7 +673,7 @@ let u = class extends K {
668
673
  const e = [];
669
674
  let t = this.leadHeadConfig.leadHedeWidth, i = 0, s = 0, a = [], o = 0, n = 0;
670
675
  for (let h = 0; h < this.leadModel.add; h++)
671
- s = this.longLeadConfig.leadIdxs[h], this.waveConfigs[s] && (t = this.waveConfigs[s].addPosX || t, o = H(this.waveConfigs[s].speed, this.gridConfig.cellMg, this.waveConfigs[s].sampleRate), n = M(this.waveConfigs[s].gain, this.gridConfig.cellMg), i = this.waveConfigs[s].addPosY || (h + this.leadModel.line + 1) * this.splitBlockHeight, a = this.waveLists[s] || [], h === 0 && (this.loopArrowY.add = i), e.push({
676
+ s = this.longLeadConfig.leadIdxs[h], this.waveConfigs[s] && (t = this.waveConfigs[s].addPosX || t, o = H(this.waveConfigs[s].speed, this.gridConfig.cellMg, this.waveConfigs[s].sampleRate), n = L(this.waveConfigs[s].gain, this.gridConfig.cellMg), i = this.waveConfigs[s].addPosY || (h + this.leadModel.line + 1) * this.splitBlockHeight, a = this.waveLists[s] || [], h === 0 && (this.loopArrowY.add = i), e.push({
672
677
  pos: [t, i],
673
678
  startInd: this.addSlidingWindowInfo.startInd || 0,
674
679
  endInd: this.addSlidingWindowInfo.endInd || 0,
@@ -686,6 +691,7 @@ let u = class extends K {
686
691
  this.isLeadDel(this.longLeadConfig.leadIdxs[a]) || ((s = this.addwaveFromGroup) == null || s.add(new O({
687
692
  cursor: "",
688
693
  name: this.longLeadConfig.leadIdxs[a] + "_" + a,
694
+ sens: e[a].sens,
689
695
  shape: {
690
696
  points: e[a].data.map(([o, n], h) => isNaN(n) ? (t === 0 && (t = h - 1, t = t < 0 ? 0 : t), [
691
697
  e[a].data[t][0] + e[a].pos[0],
@@ -714,7 +720,7 @@ let u = class extends K {
714
720
  for (let d = 0; d < this.leadModel.column; d++) {
715
721
  e = d * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0, this.leadModel.isContinuous && d > 0 && (n = h, h = n + (this.slidingWindowInfo.points || 0));
716
722
  for (let r = 1; r <= this.leadModel.line && (t = r * this.splitBlockHeight, !(i > (this.waveLists || []).length - 1)); r++)
717
- e = this.waveConfigs[i].posX || e, t = this.waveConfigs[i].posY || t, a = H(this.waveConfigs[i].speed, this.gridConfig.cellMg, this.waveConfigs[i].sampleRate), o = M(this.waveConfigs[i].gain, this.gridConfig.cellMg), s = this.waveLists[i] || [], this.waveConfigs[i] && (r === 1 && (this.loopArrowY.rowAndCol = t), l.push({
723
+ e = this.waveConfigs[i].posX || e, t = this.waveConfigs[i].posY || t, a = H(this.waveConfigs[i].speed, this.gridConfig.cellMg, this.waveConfigs[i].sampleRate), o = L(this.waveConfigs[i].gain, this.gridConfig.cellMg), s = this.waveLists[i] || [], this.waveConfigs[i] && (r === 1 && (this.loopArrowY.rowAndCol = t), l.push({
718
724
  pos: [e, t],
719
725
  startInd: n,
720
726
  endInd: h,
@@ -733,6 +739,7 @@ let u = class extends K {
733
739
  t = this.waveConfigs[o].leadIdx || 0, this.isLeadDel(t) || (a = this.rowAndColwaveFromGroup) == null || a.add(new O({
734
740
  cursor: "",
735
741
  name: o + "_" + o,
742
+ sens: e[o].sens,
736
743
  shape: {
737
744
  points: e[o].data.map(([n, h], l) => isNaN(h) ? (i === 0 && (i = l - 1, i = i < 0 ? 0 : i), [
738
745
  e[o].data[i][0] + e[o].pos[0],
@@ -820,7 +827,7 @@ let u = class extends K {
820
827
  e.event.preventDefault(), e.event.stopPropagation(), console.log("onContextmenu", e);
821
828
  const i = e.target.name.split("_"), s = +i[1];
822
829
  let a = 0, o = 0, n = 0, h = 0, l = 0;
823
- t === "single" ? (a = e.offsetX - this.singleWaveDataCopy[s].pos[0], o = this.singleWaveDataCopy[s].startInd, n = L(a, this.singleWaveDataCopy[s].step || 1), h = this.singleWaveDataCopy[s].sens, l = this.singleWaveDataCopy[s].step) : t === "rowAndCol" ? (a = e.offsetX - this.waveDataCopy[s].pos[0], o = this.waveDataCopy[s].startInd || 0, n = L(a, this.waveDataCopy[s].step || 1), h = this.waveDataCopy[s].sens, l = this.waveDataCopy[s].step) : t === "add" && (a = e.offsetX - this.addWaveDataCopy[s].pos[0], o = this.addWaveDataCopy[s].startInd || 0, n = L(a, this.addWaveDataCopy[s].step || 1), h = this.addWaveDataCopy[s].sens, l = this.addWaveDataCopy[s].step), n += o, this.$emit("notifyOnContextmenu", {
830
+ t === "single" ? (a = e.offsetX - this.singleWaveDataCopy[s].pos[0], o = this.singleWaveDataCopy[s].startInd, n = M(a, this.singleWaveDataCopy[s].step || 1), h = this.singleWaveDataCopy[s].sens, l = this.singleWaveDataCopy[s].step) : t === "rowAndCol" ? (a = e.offsetX - this.waveDataCopy[s].pos[0], o = this.waveDataCopy[s].startInd || 0, n = M(a, this.waveDataCopy[s].step || 1), h = this.waveDataCopy[s].sens, l = this.waveDataCopy[s].step) : t === "add" && (a = e.offsetX - this.addWaveDataCopy[s].pos[0], o = this.addWaveDataCopy[s].startInd || 0, n = M(a, this.addWaveDataCopy[s].step || 1), h = this.addWaveDataCopy[s].sens, l = this.addWaveDataCopy[s].step), n += o, this.$emit("notifyOnContextmenu", {
824
831
  sens: h,
825
832
  step: l,
826
833
  activeLeadIdx: +i[0],
@@ -838,7 +845,7 @@ let u = class extends K {
838
845
  this.activeLeadIdx = +a[0];
839
846
  const o = +a[1];
840
847
  let n = 0, h = 0, l = 0, d = 0, r = 0;
841
- t === "single" ? (n = e.offsetX - this.singleWaveDataCopy[o].pos[0], h = this.singleWaveDataCopy[o].startInd, l = L(n, this.singleWaveDataCopy[o].step || 1), d = this.singleWaveDataCopy[o].sens, r = this.singleWaveDataCopy[o].step) : t === "rowAndCol" ? (n = e.offsetX - this.waveDataCopy[o].pos[0], h = this.waveDataCopy[o].startInd || 0, l = L(n, this.waveDataCopy[o].step || 1), d = this.waveDataCopy[o].sens, r = this.waveDataCopy[o].step) : t === "add" && (n = e.offsetX - this.addWaveDataCopy[o].pos[0], h = this.addWaveDataCopy[o].startInd || 0, l = L(n, this.addWaveDataCopy[o].step || 1), d = this.addWaveDataCopy[o].sens, r = this.addWaveDataCopy[o].step), l += h, this.$emit("notifyActiveEnlargr", {
848
+ t === "single" ? (n = e.offsetX - this.singleWaveDataCopy[o].pos[0], h = this.singleWaveDataCopy[o].startInd, l = M(n, this.singleWaveDataCopy[o].step || 1), d = this.singleWaveDataCopy[o].sens, r = this.singleWaveDataCopy[o].step) : t === "rowAndCol" ? (n = e.offsetX - this.waveDataCopy[o].pos[0], h = this.waveDataCopy[o].startInd || 0, l = M(n, this.waveDataCopy[o].step || 1), d = this.waveDataCopy[o].sens, r = this.waveDataCopy[o].step) : t === "add" && (n = e.offsetX - this.addWaveDataCopy[o].pos[0], h = this.addWaveDataCopy[o].startInd || 0, l = M(n, this.addWaveDataCopy[o].step || 1), d = this.addWaveDataCopy[o].sens, r = this.addWaveDataCopy[o].step), l += h, this.$emit("notifyActiveEnlargr", {
842
849
  sens: d,
843
850
  step: r,
844
851
  activeLeadIdx: this.activeLeadIdx,
@@ -854,7 +861,7 @@ let u = class extends K {
854
861
  t.type === "horizontal" && (t.scrollLeft = t.scrollLeft || 0, this.scrollCommon(t.scrollLeft));
855
862
  }
856
863
  scrollCommon(e) {
857
- const t = L(e, this.publicStep || 1);
864
+ const t = M(e, this.publicStep || 1);
858
865
  this.scrollWaveFrom(t), this.scrollRuler(t), this.scrollArrow(t), this.$emit("notifyScrollPointIdx", {
859
866
  slidIdxs: t,
860
867
  scrollLeft: e
@@ -0,0 +1,6 @@
1
+ import o from "./index2.js";
2
+ import { withInstall as m } from "@costy-plus/utils";
3
+ const e = m(o);
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,22 @@
1
+ import MethodsMinix from './method';
2
+ declare const CommonWaveForm_base: import("vue-class-component/lib/declarations").VueClass<MethodsMinix>;
3
+ declare class CommonWaveForm extends CommonWaveForm_base {
4
+ protected repaintTimer: any;
5
+ protected watchVuescrollConfig(): void;
6
+ protected watchAnalyseValues(): void;
7
+ protected watchsingleModeConfig(): void;
8
+ protected watchWaveConfigs(): void;
9
+ protected watchWaveLists(): void;
10
+ protected watchLeadHeadConfig(): void;
11
+ protected watchLeadModel(): void;
12
+ protected watchWidth(): void;
13
+ protected watchHeight(): void;
14
+ protected watchLongLeadConfig(): void;
15
+ protected watchPosStart(): void;
16
+ protected destroyed(): void;
17
+ protected repaint(isInitConfigInfo?: boolean): void;
18
+ created(): void;
19
+ mounted(): void;
20
+ }
21
+ declare const _sfc_main: typeof CommonWaveForm;
22
+ export default _sfc_main;
@@ -0,0 +1,122 @@
1
+ import "./style/index.css";
2
+ import "vue";
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
+ import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
5
+ import { Watch as 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.7.16/node_modules/vuescroll/dist/vuescroll-native.js";
7
+ import m from "../MeasuringRuler/index2.js";
8
+ import f from "../MagnifierWave/index.js";
9
+ import u from "../ParallelRuler/index2.js";
10
+ import g from "../BackgroundGrid/index2.js";
11
+ import w from "./method.js";
12
+ var C = Object.defineProperty, v = Object.getOwnPropertyDescriptor, t = (i, a, s, n) => {
13
+ for (var o = n > 1 ? void 0 : n ? v(a, s) : a, p = i.length - 1, h; p >= 0; p--)
14
+ (h = i[p]) && (o = (n ? h(a, s, o) : h(o)) || o);
15
+ return n && o && C(a, s, o), o;
16
+ };
17
+ let e = class extends c(w) {
18
+ constructor() {
19
+ super(...arguments), this.repaintTimer = Object.freeze(null);
20
+ }
21
+ watchVuescrollConfig() {
22
+ this.repaint();
23
+ }
24
+ watchAnalyseValues() {
25
+ this.repaint();
26
+ }
27
+ watchsingleModeConfig() {
28
+ this.repaint();
29
+ }
30
+ watchWaveConfigs() {
31
+ this.repaint();
32
+ }
33
+ watchWaveLists() {
34
+ this.repaint(!1);
35
+ }
36
+ watchLeadHeadConfig() {
37
+ var i, a;
38
+ (i = this.leadHeadGroup) == null || i.removeAll(), (a = this.sceneIns) == null || a.remove(this.leadHeadGroup), this.drawLeadHead();
39
+ }
40
+ watchLeadModel() {
41
+ this.repaint();
42
+ }
43
+ watchWidth() {
44
+ this.repaint();
45
+ }
46
+ watchHeight() {
47
+ this.repaint();
48
+ }
49
+ watchLongLeadConfig() {
50
+ var i;
51
+ (i = this.sceneIns) == null || i.clear(), this.init();
52
+ }
53
+ watchPosStart() {
54
+ this.registPostStart();
55
+ }
56
+ destroyed() {
57
+ this.repaintTimer && clearTimeout(this.repaintTimer);
58
+ }
59
+ repaint(i = !0) {
60
+ this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
61
+ var a, s;
62
+ i && ((a = this.sceneIns) == null || a.clear(), (s = this.sceneIns) == null || s.resize({
63
+ width: this.canvasContainer.width,
64
+ height: this.canvasContainer.height
65
+ }), this.initCreatedConfig()), this.combinationDrawing(i);
66
+ }, 200);
67
+ }
68
+ created() {
69
+ this.initCreatedConfig();
70
+ }
71
+ mounted() {
72
+ this.init();
73
+ }
74
+ };
75
+ t([
76
+ r("vuescrollConfig", { deep: !0 })
77
+ ], e.prototype, "watchVuescrollConfig", 1);
78
+ t([
79
+ r("analyseValues", { deep: !0 })
80
+ ], e.prototype, "watchAnalyseValues", 1);
81
+ t([
82
+ r("singleModeConfig", { deep: !0 })
83
+ ], e.prototype, "watchsingleModeConfig", 1);
84
+ t([
85
+ r("waveConfigs", { deep: !0 })
86
+ ], e.prototype, "watchWaveConfigs", 1);
87
+ t([
88
+ r("waveLists", { deep: !0 })
89
+ ], e.prototype, "watchWaveLists", 1);
90
+ t([
91
+ r("leadHeadConfig", { deep: !0 })
92
+ ], e.prototype, "watchLeadHeadConfig", 1);
93
+ t([
94
+ r("leadModel", { deep: !0 })
95
+ ], e.prototype, "watchLeadModel", 1);
96
+ t([
97
+ r("width")
98
+ ], e.prototype, "watchWidth", 1);
99
+ t([
100
+ r("height")
101
+ ], e.prototype, "watchHeight", 1);
102
+ t([
103
+ r("longLeadConfig", { deep: !0 })
104
+ ], e.prototype, "watchLongLeadConfig", 1);
105
+ t([
106
+ r("posStart")
107
+ ], e.prototype, "watchPosStart", 1);
108
+ e = t([
109
+ l({
110
+ name: "CommonWaveForm",
111
+ components: {
112
+ vueScroll: d,
113
+ MXBackgroundGrid: g,
114
+ MXMeasuringRuler: m,
115
+ MXParallelRuler: u,
116
+ MXMagnifierWave: f
117
+ }
118
+ })
119
+ ], e);
120
+ export {
121
+ e as default
122
+ };
@@ -0,0 +1,107 @@
1
+ var t = function() {
2
+ var e = this, a = e.$createElement, i = e._self._c || a;
3
+ return i("div", {
4
+ style: {
5
+ width: `${e.width}px`,
6
+ height: `${e.height}px`
7
+ },
8
+ attrs: {
9
+ id: "common-wave-form-main"
10
+ }
11
+ }, [i("MXBackgroundGrid", {
12
+ attrs: {
13
+ width: e.canvasContainer.width,
14
+ height: e.canvasContainer.height,
15
+ "grid-config": e.gridConfig,
16
+ model: e.gridConfig.model,
17
+ "layer-id": e.prefixId + "MXGrid"
18
+ }
19
+ }), e.measurRulerConfig.isShow ? i("MXMeasuringRuler", e._g({
20
+ ref: e.prefixId + "_measuringRuler",
21
+ staticClass: "measuring-ruler",
22
+ attrs: {
23
+ config: e.measurRulerConfig.config,
24
+ width: e.canvasContainer.width,
25
+ height: e.canvasContainer.height,
26
+ "cell-mg": e.gridConfig.cellMg,
27
+ "speed-value": e.measurRulerConfig.speed || 0,
28
+ sens: e.measurRulerConfig.sens || 0,
29
+ "prefix-id": e.prefixId
30
+ },
31
+ on: {
32
+ notifyMeasurintRectPostion: e.handleNotifyMeasurintRectPostion
33
+ }
34
+ }, e.$listeners)) : e._e(), e.paralleRulerConfig.isShow ? i("MXParallelRuler", e._g({
35
+ staticClass: "parallel-ruler",
36
+ attrs: {
37
+ width: e.canvasContainer.width,
38
+ height: e.canvasContainer.height,
39
+ "cell-mg": e.gridConfig.cellMg,
40
+ "speed-value": e.paralleRulerConfig.speed || 0,
41
+ sens: e.paralleRulerConfig.sens || 0,
42
+ "heart-rate": e.paralleRulerConfig.heartRate,
43
+ "prefix-id": e.prefixId
44
+ }
45
+ }, e.$listeners)) : e._e(), e.magnifierRulerConfig.isShow ? i("MXMagnifierWave", e._g({
46
+ staticClass: "magnifier-wave",
47
+ attrs: {
48
+ "prefix-id": e.prefixId,
49
+ width: e.canvasContainer.width,
50
+ height: e.canvasContainer.height,
51
+ "grid-config": e.gridConfig,
52
+ "speed-value": e.magnifierRulerConfig.speed || 0,
53
+ "lead-head-config": e.leadHeadConfig,
54
+ "wave-data": e.waveDataCopy,
55
+ "add-wave-data": e.addWaveDataCopy,
56
+ "single-wave-data": e.singleWaveDataCopy,
57
+ "long-lead-config": e.longLeadConfig,
58
+ "split-block-height": e.splitBlockHeight,
59
+ "split-point": e.splitPoint,
60
+ "lead-config": e.leadConfig,
61
+ "heart-fight": e.heartFight,
62
+ "normal-lead-names": e.leadNameList,
63
+ "lead-names": e.leadNames
64
+ }
65
+ }, e.$listeners)) : e._e(), i("div", {
66
+ staticClass: "wave-from-box_container",
67
+ attrs: {
68
+ id: e.prefixId + "wave-from-box"
69
+ }
70
+ }), i("div", {
71
+ staticClass: "scroll-box",
72
+ style: {
73
+ width: `${e.width}px`,
74
+ height: `${e.height}px`
75
+ }
76
+ }, [e.scrollConfig.isNativeScroll ? i("div", {
77
+ ref: e.prefixId + "nativeScroll",
78
+ staticClass: "native-scroll",
79
+ on: {
80
+ scroll: e.nativeScrollFunc
81
+ }
82
+ }, [i("div", {
83
+ staticClass: "scroll-empty",
84
+ style: {
85
+ width: `${e.vuescrollWH.width}px`,
86
+ height: `${e.vuescrollWH.height}px`
87
+ }
88
+ })]) : i("vueScroll", {
89
+ ref: e.prefixId + "vueScroll",
90
+ attrs: {
91
+ ops: e.scrollConfig
92
+ },
93
+ on: {
94
+ "handle-scroll": e.handleScroll
95
+ }
96
+ }, [i("div", {
97
+ staticClass: "scroll-empty",
98
+ style: {
99
+ width: `${e.vuescrollWH.width}px`,
100
+ height: `${e.vuescrollWH.height}px`
101
+ }
102
+ })])], 1)], 1);
103
+ }, l = [];
104
+ export {
105
+ t as render,
106
+ l as staticRenderFns
107
+ };
@@ -0,0 +1,24 @@
1
+ import t from "./index.vue_vue_type_script_lang.js";
2
+ import { staticRenderFns as e, render as r } from "./index.vue_vue_type_template_lang.js";
3
+ import m from "../../_virtual/vueComponentNormalizer.js";
4
+ const n = {};
5
+ var l = /* @__PURE__ */ m(
6
+ t,
7
+ r,
8
+ e,
9
+ !1,
10
+ s,
11
+ null,
12
+ null,
13
+ null
14
+ );
15
+ function s(i) {
16
+ for (let o in n)
17
+ this[o] = n[o];
18
+ }
19
+ const a = /* @__PURE__ */ function() {
20
+ return l.exports;
21
+ }();
22
+ export {
23
+ a as default
24
+ };