costy-plus 1.0.21-0 → 1.0.23-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 (52) hide show
  1. package/dist/es/src/BackgroundGrid/PropsMinix.d.ts +1 -0
  2. package/dist/es/src/EcgWave/method.js +1 -1
  3. package/dist/es/src/EnlargeWave/medthod.d.ts +3 -2
  4. package/dist/es/src/EnlargeWave/medthod.js +19 -25
  5. package/dist/es/src/FCGWave/components/And2V5LeadPower.vue.d.ts +169 -0
  6. package/dist/es/src/FCGWave/components/LeadPower12.vue.d.ts +55 -0
  7. package/dist/es/src/FCGWave/components/PowerHistogram.vue.d.ts +31 -0
  8. package/dist/es/src/FCGWave/method.d.ts +9 -7
  9. package/dist/es/src/HFECGWave/components/Detail.vue.d.ts +65 -0
  10. package/dist/es/src/HFECGWave/components/Routine.vue.d.ts +76 -0
  11. package/dist/es/src/HFECGWave/method.d.ts +26 -0
  12. package/dist/es/src/MagnifierWave/medthod.d.ts +2 -0
  13. package/dist/es/src/MeasuringRuler/index.vue.d.ts +2 -1
  14. package/dist/es/src/ParallelRuler/index.vue.d.ts +2 -1
  15. package/dist/es/{typings → types}/BackgroundGrid.d.ts +5 -3
  16. package/dist/{lib/typings → es/types}/Common.d.ts +12 -15
  17. package/dist/es/types/EcgWave.d.ts +260 -0
  18. package/dist/es/types/FCGWave.d.ts +95 -0
  19. package/dist/{lib/typings → es/types}/MeasuringRuler.d.ts +1 -1
  20. package/dist/es/{typings → types}/ParallelRuler.d.ts +1 -1
  21. package/dist/es/types/component.d.ts +3 -0
  22. package/dist/es/types/global.d.ts +2 -0
  23. package/dist/lib/src/BackgroundGrid/PropsMinix.d.ts +1 -0
  24. package/dist/lib/src/EcgWave/method.js +1 -1
  25. package/dist/lib/src/EnlargeWave/medthod.d.ts +3 -2
  26. package/dist/lib/src/EnlargeWave/medthod.js +1 -1
  27. package/dist/lib/src/FCGWave/components/And2V5LeadPower.vue.d.ts +169 -0
  28. package/dist/lib/src/FCGWave/components/LeadPower12.vue.d.ts +55 -0
  29. package/dist/lib/src/FCGWave/components/PowerHistogram.vue.d.ts +31 -0
  30. package/dist/lib/src/FCGWave/method.d.ts +9 -7
  31. package/dist/lib/src/HFECGWave/components/Detail.vue.d.ts +65 -0
  32. package/dist/lib/src/HFECGWave/components/Routine.vue.d.ts +76 -0
  33. package/dist/lib/src/HFECGWave/method.d.ts +26 -0
  34. package/dist/lib/src/MagnifierWave/medthod.d.ts +2 -0
  35. package/dist/lib/src/MeasuringRuler/index.vue.d.ts +2 -1
  36. package/dist/lib/src/ParallelRuler/index.vue.d.ts +2 -1
  37. package/dist/lib/{typings → types}/BackgroundGrid.d.ts +5 -3
  38. package/dist/{es/typings → lib/types}/Common.d.ts +12 -15
  39. package/dist/lib/types/EcgWave.d.ts +260 -0
  40. package/dist/lib/types/FCGWave.d.ts +95 -0
  41. package/dist/{es/typings → lib/types}/MeasuringRuler.d.ts +1 -1
  42. package/dist/lib/{typings → types}/ParallelRuler.d.ts +1 -1
  43. package/dist/lib/types/component.d.ts +3 -0
  44. package/dist/lib/types/global.d.ts +2 -0
  45. package/index.ts +10 -0
  46. package/package.json +3 -5
  47. package/dist/es/typings/EcgWave.d.ts +0 -151
  48. package/dist/es/typings/FCGWave.d.ts +0 -10
  49. package/dist/es/typings/component.d.ts +0 -3
  50. package/dist/lib/typings/EcgWave.d.ts +0 -151
  51. package/dist/lib/typings/FCGWave.d.ts +0 -10
  52. package/dist/lib/typings/component.d.ts +0 -3
@@ -1,4 +1,5 @@
1
1
  import { Vue } from 'vue-property-decorator';
2
+ import { MXGridConfig } from '../../types/BackgroundGrid';
2
3
  export default class PropsMinix extends Vue {
3
4
  protected width: number;
4
5
  protected height: number;
@@ -566,7 +566,7 @@ let p = class extends K {
566
566
  let n = 0;
567
567
  for (let b = 0; b < (((h = this.formatEcgData) == null ? void 0 : h.heartBeatPosition) || []).length; b++) {
568
568
  const f = (d = this.formatEcgData) == null ? void 0 : d.heartBeatPosition[b];
569
- if (n = ((f == null ? void 0 : f.position) || 0) - e, !(e > ((f == null ? void 0 : f.position) || 0)) && !(!this.leadModel.isContinuous && !this.leadModel.add && n > (this.slidingWindowInfo.points || 0)) && !(this.singleModeInfo && n > (this.slidingWindowInfo.points || 0))) {
569
+ if (n = ((f == null ? void 0 : f.position) || 0) - e, !(e > ((f == null ? void 0 : f.position) || 0)) && !(!this.leadModel.isContinuous && !this.leadModel.add && n > (this.slidingWindowInfo.points || 0)) && !(this.isSingleMode && this.singleModeInfo && n > (this.slidingWindowInfo.points || 0))) {
570
570
  if (((f == null ? void 0 : f.position) || 0) - this.addSlidingWindowInfo.startInd > (this.addSlidingWindowInfo.points || 0))
571
571
  break;
572
572
  t = n * (((m = this.formatEcgData) == null ? void 0 : m.step) || 0) + this.leadHeadConfig.leadHedeWidth - 9.5, s = 0, (v = this.arrowGroup) == null || v.add(new ee({
@@ -1,6 +1,8 @@
1
1
  import { Vue } from 'vue-property-decorator';
2
2
  import { AnalysisMode } from '@costy-plus/utils';
3
3
  import { ZRenderType, ElementEvent, Polyline, Text, Group } from 'zrender';
4
+ import { AnalyseValue, EnlargeAnalysisData } from '../../types/Common';
5
+ import { MXGridConfig, LeadHeadConfig, MXLeadConfig, MXConventionalECGConfig } from '../../types/EcgWave';
4
6
  export default class Methods extends Vue {
5
7
  protected className: string;
6
8
  protected width: number;
@@ -98,7 +100,7 @@ export default class Methods extends Vue {
98
100
  protected measureLineList: readonly {
99
101
  ins: Group;
100
102
  x: number;
101
- }[];
103
+ }[][];
102
104
  /** 导联波长 px */
103
105
  protected waveFromLenPX: number;
104
106
  /** 导联名称数组 */
@@ -133,7 +135,6 @@ export default class Methods extends Vue {
133
135
  amplitudeDifference: string;
134
136
  };
135
137
  protected watchActiveLeadIdx(val: number): void;
136
- protected watchActiveLeadAnalyseValue(val: any): void;
137
138
  protected watchLeadNameList(val: number[]): void;
138
139
  protected get containerWH(): {
139
140
  width: number;
@@ -1,22 +1,22 @@
1
1
  var T = Object.defineProperty, b = Object.defineProperties;
2
2
  var Q = Object.getOwnPropertyDescriptors;
3
- var D = Object.getOwnPropertySymbols;
3
+ var M = Object.getOwnPropertySymbols;
4
4
  var W = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var R = (e, t, a) => t in e ? T(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, c = (e, t) => {
5
+ var D = (e, t, a) => t in e ? T(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, c = (e, t) => {
6
6
  for (var a in t || (t = {}))
7
- W.call(t, a) && R(e, a, t[a]);
8
- if (D)
9
- for (var a of D(t))
10
- G.call(t, a) && R(e, a, t[a]);
7
+ W.call(t, a) && D(e, a, t[a]);
8
+ if (M)
9
+ for (var a of M(t))
10
+ G.call(t, a) && D(e, a, t[a]);
11
11
  return e;
12
12
  }, m = (e, t) => b(e, Q(t));
13
13
  import K from "vue";
14
14
  import N from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
15
15
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js";
16
16
  import { Prop as l } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js";
17
- import { Watch as x } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js";
17
+ import { Watch as w } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js";
18
18
  import { AnalysisMode as F, AnalyseParameterTable as X, LeadNameTexts as S, getLeadpoint as z, getActualY as O, calcDistance as H, calcPRInterval as j, calcPD as E, calcQRSD as _, calcQTAndQTCAndQTD as k, caclTD as q, calcTA as $, toFixedFun as y, calcPstate as Y, calcPA as J, calcQRS as U, calcSTJA as Z, clacST as ee, calcIaddIIaddIII as te, calcRv5 as ae, calcSv1 as se, calcPelectricAxis as ie, calcQRSelectricAxis as ne, calcTelectricAxis as re, calcMs as le, getStepForSpeed as he } from "@costy-plus/utils";
19
- import { util as w, Polyline as P, Text as V, Group as B, Line as oe, Circle as de } from "zrender";
19
+ import { util as R, Polyline as P, Text as B, Group as V, Line as oe, Circle as de } from "zrender";
20
20
  var ue = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, r = (e, t, a, s) => {
21
21
  for (var i = s > 1 ? void 0 : s ? ce(t, a) : t, h = e.length - 1, o; h >= 0; h--)
22
22
  (o = e[h]) && (i = (s ? o(t, a, i) : o(i)) || i);
@@ -48,9 +48,6 @@ let n = class extends K {
48
48
  }
49
49
  });
50
50
  }
51
- watchActiveLeadAnalyseValue(e) {
52
- console.log("watchActiveLeadAnalyseValue", e);
53
- }
54
51
  watchLeadNameList(e) {
55
52
  this.leadNames = e.map((t, a) => {
56
53
  var s;
@@ -93,7 +90,7 @@ let n = class extends K {
93
90
  }, this.currentGainIdx = this.gains.findIndex((e) => e.value === this.sens / this.gridConfig.cellMg), this.currentSpeedIdx = this.speeds.findIndex((e) => e.value === this.speedValue), this.currentLeadAnalyseValueIdx = this.analyseValue.findIndex((e) => {
94
91
  var t;
95
92
  return e.BeatID === ((t = this.activeLeadAnalyseValue) == null ? void 0 : t.BeatID);
96
- }), this.currentSens = this.sens * this.magnification, this.currentSpeedValue = this.speedValue, this.currentStep = this.step * this.magnification, this.currentLeadAnalyseValue = w.clone(this.activeLeadAnalyseValue), this.complexAnalysisvalue = w.clone(this.analyseValue[0]) || null, this.isSyncAnalyseValueCheck && (this.isSyncAnalyseValue = !0), this.processEnlargeAnalysisData();
93
+ }), this.currentSens = this.sens * this.magnification, this.currentSpeedValue = this.speedValue, this.currentStep = this.step * this.magnification, this.currentLeadAnalyseValue = R.clone(this.activeLeadAnalyseValue), this.complexAnalysisvalue = R.clone(this.analyseValue[0]) || null, this.isSyncAnalyseValueCheck && (this.isSyncAnalyseValue = !0), this.processEnlargeAnalysisData();
97
94
  }
98
95
  processEnlargeAnalysisData() {
99
96
  var e, t, a, s, i;
@@ -152,7 +149,7 @@ let n = class extends K {
152
149
  }
153
150
  createLeadName() {
154
151
  var e;
155
- this.leadNameIns = new V({
152
+ this.leadNameIns = new B({
156
153
  style: {
157
154
  x: this.leadHeadConfig.leadHedeWidth,
158
155
  y: this.containerWH.height / 2 - this.leadConfig.fontSize,
@@ -165,7 +162,7 @@ let n = class extends K {
165
162
  }
166
163
  createSensAndSpeed() {
167
164
  var e, t;
168
- this.sensAndSpeedIns && ((e = this.sceneIns) == null || e.remove(this.sensAndSpeedIns)), this.sensAndSpeedIns = new V({
165
+ this.sensAndSpeedIns && ((e = this.sceneIns) == null || e.remove(this.sensAndSpeedIns)), this.sensAndSpeedIns = new B({
169
166
  cursor: "",
170
167
  style: {
171
168
  x: this.leadHeadConfig.leadHedeWidth,
@@ -195,7 +192,7 @@ let n = class extends K {
195
192
  }
196
193
  drawAllLead() {
197
194
  var t, a, s;
198
- (t = this.waveFromIns) == null || t.hide(), this.waveFromGroup ? this.waveFromGroup.removeAll() : this.waveFromGroup = new B({
195
+ (t = this.waveFromIns) == null || t.hide(), this.waveFromGroup ? this.waveFromGroup.removeAll() : this.waveFromGroup = new V({
199
196
  name: "waveFromGroup"
200
197
  }), this.longdata = void 0;
201
198
  const e = this.containerWH.height / 2;
@@ -258,7 +255,7 @@ let n = class extends K {
258
255
  }
259
256
  drawMeasureLine() {
260
257
  var a, s, i, h, o, d, u, f, p, A, L, v, g, I;
261
- this.measureGroup ? ((a = this.sceneIns) == null || a.remove(this.measureGroup), this.measureGroup.removeAll()) : this.measureGroup = new B({
258
+ this.measureGroup ? ((a = this.sceneIns) == null || a.remove(this.measureGroup), this.measureGroup.removeAll()) : this.measureGroup = new V({
262
259
  name: "measureGroup"
263
260
  });
264
261
  const e = H(this.currentSpeedValue, this.gridConfig.cellMg, this.magnification), t = {
@@ -292,7 +289,7 @@ let n = class extends K {
292
289
  ), this.measureGroup.add(this.M1), this.measureGroup.add(this.M2), this.measureGroup.add(this.P1), this.measureGroup.add(this.P2), this.measureGroup.add(this.R1), this.measureGroup.add(this.R2), this.measureGroup.add(this.T1), this.measureGroup.add(this.T2), (I = this.sceneIns) == null || I.add(this.measureGroup);
293
290
  }
294
291
  createMeasureLineGroup(e, t, a) {
295
- const s = new B({
292
+ const s = new V({
296
293
  name: e,
297
294
  draggable: "horizontal",
298
295
  ondrag: this.measureLineDrag
@@ -317,7 +314,7 @@ let n = class extends K {
317
314
  style: {
318
315
  fill: "#ccc"
319
316
  }
320
- })), s.add(new V({
317
+ })), s.add(new B({
321
318
  cursor: "",
322
319
  name: "Text",
323
320
  style: {
@@ -461,14 +458,14 @@ let n = class extends K {
461
458
  QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend
462
459
  }));
463
460
  this.enlargeAnalysisData.QRStype = d || "", this.enlargeAnalysisData.QtypeA = y(u || 0, 2), this.enlargeAnalysisData.QD = Math.round(f || 0), this.enlargeAnalysisData.RtypeA = y(p || 0, 2), this.enlargeAnalysisData.StypeA = y(g || 0, 2), this.enlargeAnalysisData.RPA = y(I || 0, 2), this.enlargeAnalysisData.RD = y(A || 0, 2), this.enlargeAnalysisData.SD = y(L || 0, 2), this.enlargeAnalysisData.RPD = y(v || 0, 2);
464
- const M = Z(
461
+ const x = Z(
465
462
  e.start_pos,
466
463
  this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
467
464
  this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
468
465
  e.Sensitivity,
469
466
  e.longdata
470
467
  );
471
- this.enlargeAnalysisData.STJtypeA = y(M || 0, 2), this.enlargeAnalysisData.STstate = ee(M || 0, e.longdata) || "";
468
+ this.enlargeAnalysisData.STJtypeA = y(x || 0, 2), this.enlargeAnalysisData.STstate = ee(x || 0, e.longdata) || "";
472
469
  const C = te(m(c({}, e), {
473
470
  ComplexData: this.complexData,
474
471
  Data: this.normalData,
@@ -744,13 +741,10 @@ r([
744
741
  })
745
742
  ], n.prototype, "speeds", 2);
746
743
  r([
747
- x("activeLeadIdx")
744
+ w("activeLeadIdx")
748
745
  ], n.prototype, "watchActiveLeadIdx", 1);
749
746
  r([
750
- x("activeLeadAnalyseValue", { deep: !0, immediate: !0 })
751
- ], n.prototype, "watchActiveLeadAnalyseValue", 1);
752
- r([
753
- x("leadNameList", { deep: !0, immediate: !0 })
747
+ w("leadNameList", { deep: !0, immediate: !0 })
754
748
  ], n.prototype, "watchLeadNameList", 1);
755
749
  n = r([
756
750
  N({
@@ -0,0 +1,169 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import { ZRenderType, Group, Text } from 'zrender';
3
+ import { MXGridConfig } from '../../../types/BackgroundGrid';
4
+ import { Fcg } from '../../../types/FCGWave';
5
+ import { MXLeadConfig } from '../../../types/EcgWave';
6
+ declare class And2v5LeadPower extends Vue {
7
+ protected width: number;
8
+ protected height: number;
9
+ protected gridConfig: MXGridConfig;
10
+ protected powerIIV5Info: {
11
+ config: undefined | {
12
+ girdCell: number;
13
+ XAxisLen: number;
14
+ YAxisH: number;
15
+ unitHz: number;
16
+ modulus_figPower: number;
17
+ dRate_Y: number;
18
+ scale: number;
19
+ };
20
+ dataInfo: {
21
+ AutoPowerSpectrum: (Fcg.PowerSpectrumItem | undefined)[];
22
+ Phase: Fcg.Phase | undefined;
23
+ RF: Fcg.RF | undefined;
24
+ CrossCorrelation: Fcg.CrossCorrelation | undefined;
25
+ ImpluseResponse: Fcg.ImpluseResponse | undefined;
26
+ };
27
+ };
28
+ protected gain: {
29
+ value: number;
30
+ label: string;
31
+ };
32
+ protected leadConfig: MXLeadConfig;
33
+ protected sceneIns: Readonly<ZRenderType | null>;
34
+ protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
35
+ protected waveFromGroup: Readonly<Group | null>;
36
+ /** 分割线 */
37
+ protected splitLineGroup: Readonly<Group | null>;
38
+ protected rows: number;
39
+ protected columns: number;
40
+ /** 分界线 宽度 */
41
+ protected splitLineW: number;
42
+ /** 分块 高度 */
43
+ protected splitBlockHeight: number;
44
+ /** 分块 宽度 */
45
+ protected splitBlockWidth: number;
46
+ /** 放大缩小比例系数 */
47
+ protected ratio: number;
48
+ protected leadData: readonly {
49
+ style: string;
50
+ name: string;
51
+ }[];
52
+ protected watchWidth(): void;
53
+ protected watchHeight(): void;
54
+ protected watchGain(): void;
55
+ protected destroyed(): void;
56
+ protected created(): void;
57
+ protected mounted(): void;
58
+ protected repaint(): void;
59
+ protected init(): void;
60
+ protected initWaveFormPeer(): void;
61
+ protected initConfig(): void;
62
+ protected calcConfig(): void;
63
+ protected combinationDrawing(): void;
64
+ /** 绘制 交叉分界线,没有使用 Line,发现位置不对 */
65
+ protected drawSplitLine(): void;
66
+ /** TODO: 画 坐标轴和波形 */
67
+ protected drawBlockWave(): void;
68
+ protected getGain(fixedValue: number, waveData: number[], girdCell: number): number;
69
+ protected drawGyyAndGxx({ descrice, oAX, oAY, YAxisH, lineStyle, XAxisLen, girdCell, lineXBlock, unitHz, orgStartY, fixedValue, orgStartX, blockCells, notifyIdx, }: {
70
+ descrice: {
71
+ name: string;
72
+ style: string;
73
+ };
74
+ oAX: number;
75
+ oAY: number;
76
+ YAxisH: number;
77
+ lineStyle: Record<string, any>;
78
+ XAxisLen: number;
79
+ girdCell: number;
80
+ lineXBlock: number;
81
+ unitHz: number;
82
+ orgStartY: number;
83
+ fixedValue: number;
84
+ orgStartX: number;
85
+ blockCells: number;
86
+ notifyIdx: number;
87
+ }): void;
88
+ protected drawRF({ descrice, oAX, oAY, YAxisH, lineStyle, XAxisLen, girdCell, lineXBlock, unitHz, orgStartY, fixedValue, orgStartX, blockCells, notifyIdx, }: {
89
+ descrice: {
90
+ name: string;
91
+ style: string;
92
+ };
93
+ oAX: number;
94
+ oAY: number;
95
+ YAxisH: number;
96
+ lineStyle: Record<string, any>;
97
+ XAxisLen: number;
98
+ girdCell: number;
99
+ lineXBlock: number;
100
+ unitHz: number;
101
+ orgStartY: number;
102
+ fixedValue: number;
103
+ orgStartX: number;
104
+ blockCells: number;
105
+ notifyIdx: number;
106
+ }): void;
107
+ protected drawQxy({ descrice, oAX, oAY, YAxisH, lineStyle, XAxisLen, girdCell, lineXBlock, unitHz, orgStartY, fixedValue, orgStartX, blockCells, notifyIdx, }: {
108
+ descrice: {
109
+ name: string;
110
+ style: string;
111
+ };
112
+ oAX: number;
113
+ oAY: number;
114
+ YAxisH: number;
115
+ lineStyle: Record<string, any>;
116
+ XAxisLen: number;
117
+ girdCell: number;
118
+ lineXBlock: number;
119
+ unitHz: number;
120
+ orgStartY: number;
121
+ fixedValue: number;
122
+ orgStartX: number;
123
+ blockCells: number;
124
+ notifyIdx: number;
125
+ }): void;
126
+ protected drawVxy({ descrice, oAX, oAY, YAxisH, lineStyle, XAxisLen, girdCell, lineXBlock, unitHz, orgStartY, fixedValue, orgStartX, blockCells, notifyIdx, }: {
127
+ descrice: {
128
+ name: string;
129
+ style: string;
130
+ };
131
+ oAX: number;
132
+ oAY: number;
133
+ YAxisH: number;
134
+ lineStyle: Record<string, any>;
135
+ XAxisLen: number;
136
+ girdCell: number;
137
+ lineXBlock: number;
138
+ unitHz: number;
139
+ orgStartY: number;
140
+ fixedValue: number;
141
+ orgStartX: number;
142
+ blockCells: number;
143
+ notifyIdx: number;
144
+ }): void;
145
+ protected drawPIH({ descrice, oAX, oAY, YAxisH, lineStyle, XAxisLen, girdCell, lineXBlock, unitHz, orgStartY, fixedValue, orgStartX, blockCells, notifyIdx, }: {
146
+ descrice: {
147
+ name: string;
148
+ style: string;
149
+ };
150
+ oAX: number;
151
+ oAY: number;
152
+ YAxisH: number;
153
+ lineStyle: Record<string, any>;
154
+ XAxisLen: number;
155
+ girdCell: number;
156
+ lineXBlock: number;
157
+ unitHz: number;
158
+ orgStartY: number;
159
+ fixedValue: number;
160
+ orgStartX: number;
161
+ blockCells: number;
162
+ notifyIdx: number;
163
+ }): void;
164
+ /** 绘制 右上角内容 */
165
+ protected drawBlockTips(orgStartX: number, orgStartY: number, style: string, curPowerInfo: unknown): void;
166
+ protected createTipsText(text: string, x: number, y: number): Text;
167
+ }
168
+ declare const _sfc_main: typeof And2v5LeadPower;
169
+ export default _sfc_main;
@@ -0,0 +1,55 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import { ZRenderType, Group, Text } from 'zrender';
3
+ import { MXGridConfig } from '../../../types/BackgroundGrid';
4
+ import { Fcg, LeadPower12Config } from '../../../types/FCGWave';
5
+ import { MXLeadConfig } from '../../../types/EcgWave';
6
+ declare class LeadPower12 extends Vue {
7
+ protected width: number;
8
+ protected height: number;
9
+ protected gridConfig: MXGridConfig;
10
+ protected leadPower12Info: {
11
+ config?: LeadPower12Config;
12
+ dataInfo?: Fcg.PowerSpectrumItem[];
13
+ };
14
+ protected gain: {
15
+ value: number;
16
+ label: string;
17
+ };
18
+ protected leadConfig: MXLeadConfig;
19
+ protected sceneIns: Readonly<ZRenderType | null>;
20
+ protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
21
+ protected waveFromGroup: Readonly<Group | null>;
22
+ /** 分割线 */
23
+ protected splitLineGroup: Readonly<Group | null>;
24
+ protected rows: number;
25
+ protected columns: number;
26
+ /** 分界线 宽度 */
27
+ protected splitLineW: number;
28
+ /** 分块 高度 */
29
+ protected splitBlockHeight: number;
30
+ /** 分块 宽度 */
31
+ protected splitBlockWidth: number;
32
+ /** 放大缩小比例系数 */
33
+ protected ratio: number;
34
+ protected watchWidth(): void;
35
+ protected watchHeight(): void;
36
+ protected watchGain(): void;
37
+ protected destroyed(): void;
38
+ protected created(): void;
39
+ protected mounted(): void;
40
+ protected repaint(): void;
41
+ protected init(): void;
42
+ protected initWaveFormPeer(): void;
43
+ protected initConfig(): void;
44
+ protected calcConfig(): void;
45
+ protected combinationDrawing(): void;
46
+ /** 绘制 交叉分界线,没有使用 Line,发现位置不对 */
47
+ protected drawSplitLine(): void;
48
+ /** 画 坐标轴和波形 */
49
+ protected drawBlockWave(): void;
50
+ /** 绘制 右上角内容 */
51
+ protected drawBlockTips(orgStartX: number, orgStartY: number, curPower: Fcg.PowerSpectrumItem): void;
52
+ protected createTipsText(text: string, x: number, y: number): Text;
53
+ }
54
+ declare const _sfc_main: typeof LeadPower12;
55
+ export default _sfc_main;
@@ -0,0 +1,31 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import { ZRenderType, Group } from 'zrender';
3
+ import { Fcg } from '../../../types/FCGWave';
4
+ declare class PowerHistogram extends Vue {
5
+ protected width: number;
6
+ protected height: number;
7
+ protected powerHistogramInfo: Fcg.HistogramValue | null;
8
+ protected sceneIns: Readonly<ZRenderType | null>;
9
+ protected drawGroup: Readonly<Group | null>;
10
+ protected drawContainer: Readonly<HTMLDivElement | null>;
11
+ protected headData: readonly {
12
+ name: string;
13
+ data?: number[] | undefined;
14
+ }[];
15
+ protected horizonData: readonly {
16
+ name: string;
17
+ data?: number[] | undefined;
18
+ }[];
19
+ protected watchWidth(): void;
20
+ protected watchHeight(): void;
21
+ protected destroyed(): void;
22
+ protected created(): void;
23
+ protected mounted(): void;
24
+ protected repaint(): void;
25
+ protected initConfig(): void;
26
+ protected init(): void;
27
+ protected initWaveFormPeer(): void;
28
+ protected drawGraphic(): void;
29
+ }
30
+ declare const _sfc_main: typeof PowerHistogram;
31
+ export default _sfc_main;
@@ -1,5 +1,7 @@
1
1
  import { Vue } from 'vue-property-decorator';
2
2
  import { FcgAnalysisMode, FcgClass } from '@costy-plus/utils';
3
+ import { MXLeadConfig } from '../../types/EcgWave';
4
+ import { MXGridConfig } from '../../types/BackgroundGrid';
3
5
  export default class Methods extends Vue {
4
6
  protected width: number;
5
7
  protected height: number;
@@ -22,10 +24,10 @@ export default class Methods extends Vue {
22
24
  dRate_Y: number;
23
25
  scale: number;
24
26
  } | undefined;
25
- dataInfo: any;
27
+ dataInfo: import("@costy-plus/utils/dist/es/types/fcgTools").Fcg.PowerSpectrumItem[] | undefined;
26
28
  };
27
29
  /** 获取 功率谱直方图 */
28
- protected get powerHistogramInfo(): any;
30
+ protected get powerHistogramInfo(): import("@costy-plus/utils/dist/es/types/fcgTools").Fcg.HistogramValue | undefined;
29
31
  /** 获取 II和V5导功率谱 */
30
32
  protected get powerIIV5Info(): {
31
33
  config: {
@@ -38,11 +40,11 @@ export default class Methods extends Vue {
38
40
  scale: number;
39
41
  } | undefined;
40
42
  dataInfo: {
41
- AutoPowerSpectrum: any[];
42
- Phase: any;
43
- RF: any;
44
- CrossCorrelation: any;
45
- ImpluseResponse: any;
43
+ AutoPowerSpectrum: (import("@costy-plus/utils/dist/es/types/fcgTools").Fcg.PowerSpectrumItem | undefined)[];
44
+ Phase: import("@costy-plus/utils/dist/es/types/fcgTools").Fcg.Phase | undefined;
45
+ RF: import("@costy-plus/utils/dist/es/types/fcgTools").Fcg.RF | undefined;
46
+ CrossCorrelation: import("@costy-plus/utils/dist/es/types/fcgTools").Fcg.CrossCorrelation | undefined;
47
+ ImpluseResponse: import("@costy-plus/utils/dist/es/types/fcgTools").Fcg.ImpluseResponse | undefined;
46
48
  };
47
49
  };
48
50
  protected FcgAnalysisMode: typeof FcgAnalysisMode;
@@ -0,0 +1,65 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import { HFECGClass } from '@costy-plus/utils';
3
+ import { ZRenderType, Group } from 'zrender';
4
+ import { MXGridConfig } from '../../../types/BackgroundGrid';
5
+ import { MXLeadConfig, HeartBeatPosition } from '../../../types/EcgWave';
6
+ declare class Detail extends Vue {
7
+ protected width: number;
8
+ protected height: number;
9
+ protected gridConfig: MXGridConfig;
10
+ protected formatData: HFECGClass | null;
11
+ protected leadConfig: MXLeadConfig;
12
+ protected heardBeat: Partial<HeartBeatPosition> | null;
13
+ protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
14
+ protected AssistCanvas: Readonly<HTMLCanvasElement | null>;
15
+ protected sceneIns: Readonly<ZRenderType | null>;
16
+ protected waveFormGroup: Readonly<Group | null>;
17
+ /** 分割线 */
18
+ protected splitLineGroup: Readonly<Group | null>;
19
+ protected rows: number;
20
+ protected columns: number;
21
+ /** 分界线 宽度 */
22
+ protected splitLineW: number;
23
+ /** 分块 高度 */
24
+ protected splitBlockHeight: number;
25
+ /** 分块 宽度 */
26
+ protected splitBlockWidth: number;
27
+ protected tableHeaderList: string[];
28
+ protected notchInfoQRS: number[][];
29
+ protected notchInfoToatolQRS: {
30
+ col0: number;
31
+ col1: number;
32
+ col2: number;
33
+ };
34
+ /** 表格大小 */
35
+ protected get tableWH(): {
36
+ width: number;
37
+ height: number;
38
+ };
39
+ /** 实际画布容器大小 */
40
+ protected get canvasContainer(): {
41
+ width: number;
42
+ height: number;
43
+ };
44
+ protected get tableItemH(): number;
45
+ protected watchHeardBeat(val: Partial<HeartBeatPosition> | null): void;
46
+ protected watchWidth(): void;
47
+ protected watchHeight(): void;
48
+ protected watchFormatData(): void;
49
+ protected repaint(): void;
50
+ protected destroyed(): void;
51
+ protected created(): void;
52
+ protected initConfig(): void;
53
+ protected mounted(): void;
54
+ protected combinationDrawing(): void;
55
+ protected calcNotchInfoToatolQRS(): void;
56
+ protected handleChange(currentValue: number, idx: number, key: number): void;
57
+ protected calcConfig(): void;
58
+ protected initWaveFormPeer(): void;
59
+ /** 绘制 块 */
60
+ protected drawSplitBlock(): void;
61
+ /** 绘制波形相关 */
62
+ protected drawWaveForm(): void;
63
+ }
64
+ declare const _sfc_main: typeof Detail;
65
+ export default _sfc_main;
@@ -0,0 +1,76 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import type { Config as vueScrollConfig } from 'vuescroll';
3
+ import { HFECGClass } from '@costy-plus/utils';
4
+ import { ZRenderType, Group, Polygon } from 'zrender';
5
+ import { HandleScrollParams } from '../../../types/Common';
6
+ import { MXGridConfig } from '../../../types/BackgroundGrid';
7
+ import { MXLeadConfig, HeartBeatPosition } from '../../../types/EcgWave';
8
+ declare class Routine extends Vue {
9
+ protected width: number;
10
+ protected height: number;
11
+ protected gridConfig: MXGridConfig;
12
+ /** 滚动条配置 */
13
+ protected vuescrollConfig: vueScrollConfig & {
14
+ isShow: boolean;
15
+ };
16
+ protected formatData: HFECGClass | null;
17
+ protected leadConfig: MXLeadConfig;
18
+ protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
19
+ protected sceneIns: Readonly<ZRenderType | null>;
20
+ protected waveFormGroup: Readonly<Group | null>;
21
+ protected arrowGroup: Readonly<Group | null>;
22
+ protected scrollIdx: number;
23
+ protected currentHeardBeat: {
24
+ heardBeat: HeartBeatPosition | null;
25
+ ele: Polygon | null;
26
+ };
27
+ protected slidingWindowInfo: Readonly<{
28
+ points?: number | undefined;
29
+ startInd?: number | undefined;
30
+ endInd?: number | undefined;
31
+ }>;
32
+ /** 滚动条内容区域宽高 */
33
+ protected vuescrollWH: {
34
+ width: number;
35
+ height: number;
36
+ };
37
+ /** 实际画布容器大小 */
38
+ protected get canvasContainer(): {
39
+ width: number;
40
+ height: number;
41
+ };
42
+ protected watchWidth(): void;
43
+ protected watchHeight(): void;
44
+ protected watchFormatData(): void;
45
+ protected repaint(): void;
46
+ protected destroyed(): void;
47
+ protected created(): void;
48
+ protected initConfig(): void;
49
+ protected mounted(): void;
50
+ protected combinationDrawing(): void;
51
+ protected initWaveFormPeer(): void;
52
+ /** 初始化 波形 滑动窗口配置 */
53
+ protected initSlidingWindowInfo(): void;
54
+ /** 绘制展示波形相关 */
55
+ protected drawWaveFrom(): void;
56
+ /** 创建导联名称 */
57
+ protected createLeadName(): void;
58
+ /** 获取 当前绘制 的数据点位 */
59
+ protected getRednerPoints(): {
60
+ pos: [number, number];
61
+ data: number[][];
62
+ startInd: number;
63
+ endInd: number;
64
+ }[];
65
+ /** 创建 导联 */
66
+ protected createWaveFrom(): void;
67
+ /** 画 心搏 箭头,箭头旁提示文案 */
68
+ protected drawLoopArrow(startPosIdx?: number): void;
69
+ /** 心搏箭头点击事件 */
70
+ protected arrowLoopClick(heardBeat: Partial<HeartBeatPosition>, ele: Polygon): void;
71
+ protected handleScroll(vertical: HandleScrollParams, horizontal: HandleScrollParams, nativeEvent: Event): void;
72
+ protected scrollWaveFrom(slidIdxs: number): void;
73
+ protected scrollArrow(slidIdxs: number): void;
74
+ }
75
+ declare const _sfc_main: typeof Routine;
76
+ export default _sfc_main;
@@ -0,0 +1,26 @@
1
+ import { Vue } from 'vue-property-decorator';
2
+ import type { Config as vueScrollConfig } from 'vuescroll';
3
+ import { HFECGClass } from '@costy-plus/utils';
4
+ import { MXGridConfig } from '../../types/BackgroundGrid';
5
+ import { MXLeadConfig, HeartBeatPosition } from '../../types/EcgWave';
6
+ export default class Methods extends Vue {
7
+ protected width: number;
8
+ protected height: number;
9
+ protected gridConfig: MXGridConfig;
10
+ protected formatData: HFECGClass | null;
11
+ protected leadConfig: MXLeadConfig;
12
+ protected currentHeardBeat: Partial<HeartBeatPosition> | null;
13
+ protected get routineWH(): {
14
+ width: number;
15
+ height: number;
16
+ };
17
+ protected get detailWH(): {
18
+ width: number;
19
+ height: number;
20
+ };
21
+ /** 滚动条配置 */
22
+ protected vuescrollConfig: vueScrollConfig & {
23
+ isShow: boolean;
24
+ };
25
+ protected notifyHeardBeat(heardBeat: Partial<HeartBeatPosition> | null): void;
26
+ }
@@ -1,5 +1,7 @@
1
1
  import { Vue } from 'vue-property-decorator';
2
2
  import { ZRenderType, Polyline, Text } from 'zrender';
3
+ import { MXGridConfig } from '../../types/BackgroundGrid';
4
+ import { MXLeadConfig, HeartFight, LeadHeadConfig } from '../../types/EcgWave';
3
5
  export default class Methods extends Vue {
4
6
  protected className: string;
5
7
  protected width: number;
@@ -1,5 +1,6 @@
1
1
  import { Vue } from 'vue-property-decorator';
2
2
  import { ZRenderType, Group, Rect, ElementEvent, Circle, Text } from 'zrender';
3
+ import { MXMeasuringRulerConfig } from '../../types/MeasuringRuler';
3
4
  declare class MXMeasuringRuler extends Vue {
4
5
  protected width: number;
5
6
  protected height: number;
@@ -19,7 +20,7 @@ declare class MXMeasuringRuler extends Vue {
19
20
  protected textIns: Readonly<Text | null>;
20
21
  protected fontFamily: string;
21
22
  /** 左上,右上,右下,左下 */
22
- protected circleList: readonly Circle[];
23
+ protected circleList: readonly Circle[][];
23
24
  protected isMouseDown: Readonly<boolean>;
24
25
  protected circleDragPos: Readonly<{
25
26
  x: number;