costy-plus 1.0.83-0 → 1.0.85-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.
package/dist/es/index.js CHANGED
@@ -8,16 +8,17 @@ import { default as i } from "./src/MeasuringRuler/index.js";
8
8
  import { default as v } from "./src/MeasuringRulerMore/index.js";
9
9
  import { default as g } from "./src/ParallelRuler/index.js";
10
10
  import { default as E } from "./src/EnlargeWave/index.js";
11
- import { default as T } from "./src/FCGWave/index.js";
12
- import { default as R } from "./src/HFECGWave/index.js";
13
- import { default as F } from "./src/ELTree/index.js";
14
- import { default as b } from "./src/TurnPage/index.js";
15
- import { default as D } from "./src/Menu/index.js";
16
- import { default as S } from "./src/SideBar/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";
17
18
  import { default as $ } from "./src/MedexTab/index.js";
18
19
  import { default as j } from "./src/MedexButton/index.js";
19
- import { default as w } from "./src/MedexDialog/index.js";
20
- import { default as A } from "./src/UEditor/index.js";
20
+ import { default as z } from "./src/MedexDialog/index.js";
21
+ import { default as I } from "./src/UEditor/index.js";
21
22
  export * from "zrender";
22
23
  const r = {
23
24
  install: (a) => {
@@ -29,21 +30,22 @@ export {
29
30
  l as MXBackgroundGrid,
30
31
  j as MXButton,
31
32
  d as MXCommonWaveWaveComponents,
32
- w as MXDialog,
33
+ z as MXDialog,
33
34
  p as MXECGWaveComponents,
34
35
  E as MXEnlargeWave,
35
- T as MXFCGWaveComponents,
36
- R as MXHFECGWaveComponents,
36
+ T as MXEnlargeWaveView,
37
+ R as MXFCGWaveComponents,
38
+ F as MXHFECGWaveComponents,
37
39
  i as MXMeasuringRuler,
38
- D as MXMenuComponents,
40
+ H as MXMenuComponents,
39
41
  M as MXMonitorWaveComponents,
40
42
  g as MXParallelRuler,
41
- S as MXSideBar,
43
+ U as MXSideBar,
42
44
  $ as MXTab,
43
45
  m as MXText,
44
- F as MXTree,
45
- b as MXTurnPage,
46
- A as MXUEditor,
46
+ b as MXTree,
47
+ y as MXTurnPage,
48
+ I as MXUEditor,
47
49
  v as MeasuringRulerMore,
48
50
  r as default
49
51
  };
@@ -167,6 +167,7 @@ export default class Methods extends Vue {
167
167
  /** 双指缩放相关 */
168
168
  protected sceneFirstDistance: number;
169
169
  protected sceneMagnification: number;
170
+ protected originCanvasWidth: number;
170
171
  /** 实际画布容器大小 */
171
172
  protected get canvasContainer(): {
172
173
  width: number;
@@ -14,15 +14,15 @@ import U 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
- import { AnalysisMode as M, throttling as O, getPrintLengthToPx as Z, getDataLenTimes as F, getDistance as $, getPointIdxForPx as x, LeadNameTexts as J } from "@costy-plus/utils";
17
+ import { AnalysisMode as M, throttling as O, getPrintLengthToPx as Z, getDataLenTimes as L, getDistance as $, getPointIdxForPx as x, LeadNameTexts as J } from "@costy-plus/utils";
18
18
  import * as ee from "zrender";
19
- import { Group as C, Text as W, Polyline as L, Line as b, Polygon as te, util as ie } from "zrender";
20
- var ae = Object.defineProperty, se = Object.getOwnPropertyDescriptor, g = (e, t, i, a) => {
19
+ import { Group as C, Text as W, Polyline as F, Line as b, Polygon as te, util as ie } from "zrender";
20
+ var ae = Object.defineProperty, se = Object.getOwnPropertyDescriptor, u = (e, t, i, a) => {
21
21
  for (var s = a > 1 ? void 0 : a ? se(t, i) : t, o = e.length - 1, r; o >= 0; o--)
22
22
  (r = e[o]) && (s = (a ? r(t, i, s) : r(s)) || s);
23
23
  return a && s && ae(t, i, s), s;
24
24
  };
25
- let u = class extends U {
25
+ let g = class extends U {
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,
@@ -45,7 +45,7 @@ let u = class extends U {
45
45
  }), this.vuescrollWH = {
46
46
  width: 0,
47
47
  height: 0
48
- }, 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.isShowEnlargeWave = !1, this.sceneFirstDistance = Object.freeze(0), this.sceneMagnification = 1;
48
+ }, 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.isShowEnlargeWave = !1, this.sceneFirstDistance = Object.freeze(0), this.sceneMagnification = 1, this.originCanvasWidth = Object.freeze(0);
49
49
  }
50
50
  get canvasContainer() {
51
51
  var e;
@@ -127,7 +127,7 @@ let u = class extends U {
127
127
  name: "heardBeatLine"
128
128
  }), this.pacingGroup = new C({
129
129
  name: "pacing"
130
- }), this.vuescrollWH.width = this.width, this.vuescrollWH.height = this.height;
130
+ }), this.vuescrollWH.width = this.width, this.originCanvasWidth = this.width, this.vuescrollWH.height = this.height;
131
131
  let e = this.canvasContainer.width;
132
132
  if (((i = (t = this.conventionalECGConfig) == null ? void 0 : t.ecgReviewSetting) == null ? void 0 : i.ecgareawidth) === "1") {
133
133
  const m = Z(((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.SampleRate) || 0) + this.leadHeadConfig.leadHedeWidth;
@@ -157,7 +157,7 @@ let u = class extends U {
157
157
  let m = this.drawArea.height;
158
158
  this.leadModel.isShowPacing && (m = this.drawArea.height - this.drawBottomPacH), this.splitBlockHeight = m / this.totalRows;
159
159
  }
160
- this.dataTotalTimes = F(
160
+ this.dataTotalTimes = L(
161
161
  this.waveFromData[0].length || 0,
162
162
  ((h = this.formatEcgData) == null ? void 0 : h.processedData.otherParams.SampleRate) || 0
163
163
  ), this.rulerStep = (((d = this.formatEcgData) == null ? void 0 : d.step) || 1) * (((f = this.formatEcgData) == null ? void 0 : f.processedData.otherParams.SampleRate) || 1) / (this.gridConfig.cellMg * 2 + 2);
@@ -224,7 +224,7 @@ let u = class extends U {
224
224
  }
225
225
  zoomWave() {
226
226
  var e, t, i, a, s, o, r, l, n, h, d, f;
227
- (e = this.rowAndColwaveFromGroup) == null || e.attr({
227
+ this.scrollConfig.isShow && !this.isSingleMode && (this.sceneMagnification > 1 ? this.vuescrollWH.width = this.originCanvasWidth * 1.3 : this.vuescrollWH.width = this.originCanvasWidth), (e = this.rowAndColwaveFromGroup) == null || e.attr({
228
228
  scaleX: this.sceneMagnification,
229
229
  scaleY: this.sceneMagnification
230
230
  }), (t = this.leadHeadGroup) == null || t.attr({
@@ -287,7 +287,7 @@ let u = class extends U {
287
287
  fill: this.leadConfig.lineColor,
288
288
  fontFamily: this.fontFamily
289
289
  }
290
- })), (l = this.pacingGroup) == null || l.add(new L({
290
+ })), (l = this.pacingGroup) == null || l.add(new F({
291
291
  cursor: "",
292
292
  name: "0_0",
293
293
  shape: {
@@ -313,7 +313,7 @@ let u = class extends U {
313
313
  var o;
314
314
  const a = this.leadHeadConfig.leadHedeWidth / 4;
315
315
  let s = ((o = this.formatEcgData) == null ? void 0 : o.sens) || 0;
316
- return s = i ? s / 2 : s, new L({
316
+ return s = i ? s / 2 : s, new F({
317
317
  cursor: "",
318
318
  shape: {
319
319
  points: [
@@ -378,7 +378,7 @@ let u = class extends U {
378
378
  (s = this.splitLineGroup) == null || s.removeAll(), (o = this.sceneIns) == null || o.remove(this.splitLineGroup);
379
379
  const e = (this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / this.leadModel.column;
380
380
  if (this.splitPoint = e, this.isSingleMode) {
381
- const P = F(
381
+ const P = L(
382
382
  Math.ceil(this.splitPoint / (((r = this.formatEcgData) == null ? void 0 : r.step) || 1)) || 0,
383
383
  ((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.SampleRate) || 0
384
384
  ), y = parseInt(`${P / 1e3 % 60}`, 10);
@@ -393,13 +393,13 @@ let u = class extends U {
393
393
  (H = this.sceneIns) == null || H.add(this.splitLineGroup);
394
394
  }
395
395
  initSlidingWindowInfo() {
396
- var a, s;
396
+ var a, s, o;
397
397
  const e = ((a = this.formatEcgData) == null ? void 0 : a.step) || 0, t = Math.ceil(this.splitPoint / e);
398
398
  this.slidingWindowInfo = {
399
399
  points: t,
400
400
  startInd: 0,
401
401
  endInd: t
402
- }, this.scrollConfig.isShow && !this.isSingleMode && (this.vuescrollWH.width = this.canvasContainer.width + (((s = this.formatEcgData) == null ? void 0 : s.dataPxLen) || 0) - this.splitPoint, this.vuescrollWH.width = this.vuescrollWH.width * 1.3);
402
+ }, this.scrollConfig.isShow && !this.isSingleMode && (this.vuescrollWH.width = this.canvasContainer.width + (((s = this.formatEcgData) == null ? void 0 : s.dataPxLen) || 0) - this.splitPoint, this.originCanvasWidth = this.canvasContainer.width + (((o = this.formatEcgData) == null ? void 0 : o.dataPxLen) || 0) - this.splitPoint);
403
403
  const i = Math.ceil((this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / e);
404
404
  this.addSlidingWindowInfo = {
405
405
  points: i,
@@ -464,11 +464,11 @@ let u = class extends U {
464
464
  var r, l, n, h, d, f, m;
465
465
  (r = this.singleWaveFromGroup) == null || r.removeAll();
466
466
  const e = (((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.LeadName) || [])[this.singleModeInfo.defaultSelect] || 0;
467
- let t = this.getRednerSinglePoints(), i = F(this.slidingWindowInfo.points || 0, ((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0);
467
+ let t = this.getRednerSinglePoints(), i = L(this.slidingWindowInfo.points || 0, ((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0);
468
468
  const a = i;
469
469
  let s = 0, o = 0;
470
470
  for (let p = 0; p < t.length && !(t[p].pos[1] > this.drawArea.height + this.bottomAreaHeight); p++)
471
- this.isLeadDel(e) || (s = parseInt(`${i / 1e3 / 60}`, 10), o = parseInt(`${i / 1e3 % 60}`, 10), s = o === 60 ? s += 1 : s, s = s === 0 ? "00" : s < 10 ? `0${s}` : s, o = o === 0 || o === 60 ? "00" : o < 10 ? `0${o}` : o, (h = this.singleWaveFromGroup) == null || h.add(new L({
471
+ this.isLeadDel(e) || (s = parseInt(`${i / 1e3 / 60}`, 10), o = parseInt(`${i / 1e3 % 60}`, 10), s = o === 60 ? s += 1 : s, s = s === 0 ? "00" : s < 10 ? `0${s}` : s, o = o === 0 || o === 60 ? "00" : o < 10 ? `0${o}` : o, (h = this.singleWaveFromGroup) == null || h.add(new F({
472
472
  cursor: "",
473
473
  name: this.singleModeInfo.defaultSelect + "_" + p,
474
474
  shape: {
@@ -503,7 +503,7 @@ let u = class extends U {
503
503
  console.time("createAddWaveFrom");
504
504
  let e = this.getAddRednerPoints();
505
505
  for (let a = 0; a < e.length; a++)
506
- this.isLeadDel(this.longLeadConfig.leadIdxs[a]) || ((t = this.addwaveFromGroup) == null || t.add(new L({
506
+ this.isLeadDel(this.longLeadConfig.leadIdxs[a]) || ((t = this.addwaveFromGroup) == null || t.add(new F({
507
507
  cursor: "",
508
508
  name: this.longLeadConfig.leadIdxs[a] + "_" + a,
509
509
  shape: {
@@ -527,7 +527,7 @@ let u = class extends U {
527
527
  console.time("createRowAndColWaveFrom"), (i = this.rowAndColwaveFromGroup) == null || i.removeAll();
528
528
  let e = this.getRednerPoints(), t = 0;
529
529
  for (let n = 0; n < e.length; n++)
530
- t = (((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.LeadName) || [])[n] || 0, this.isLeadDel(t) || (s = this.rowAndColwaveFromGroup) == null || s.add(new L({
530
+ t = (((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.LeadName) || [])[n] || 0, this.isLeadDel(t) || (s = this.rowAndColwaveFromGroup) == null || s.add(new F({
531
531
  cursor: "",
532
532
  name: n + "_" + n,
533
533
  shape: {
@@ -625,7 +625,7 @@ let u = class extends U {
625
625
  if (this.leadModel.isContinuous)
626
626
  s = t * 5;
627
627
  else if (!this.leadModel.add && ((o = this.formatEcgData) == null ? void 0 : o.step)) {
628
- const d = x(this.splitPoint, this.formatEcgData.step), f = F(d, ((r = this.formatEcgData) == null ? void 0 : r.processedData.otherParams.SampleRate) || 0) / 1e3;
628
+ const d = x(this.splitPoint, this.formatEcgData.step), f = L(d, ((r = this.formatEcgData) == null ? void 0 : r.processedData.otherParams.SampleRate) || 0) / 1e3;
629
629
  s = e + f;
630
630
  }
631
631
  for (let d = e; d <= s; d = +(d + 0.1).toFixed(1))
@@ -676,8 +676,8 @@ let u = class extends U {
676
676
  fontFamily: this.fontFamily
677
677
  };
678
678
  let r = 0;
679
- for (let G = 0; G < (((h = this.formatEcgData) == null ? void 0 : h.heartBeatPosition) || []).length; G++) {
680
- const c = (d = this.formatEcgData) == null ? void 0 : d.heartBeatPosition[G];
679
+ for (let E = 0; E < (((h = this.formatEcgData) == null ? void 0 : h.heartBeatPosition) || []).length; E++) {
680
+ const c = (d = this.formatEcgData) == null ? void 0 : d.heartBeatPosition[E];
681
681
  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))) {
682
682
  if (((c == null ? void 0 : c.position) || 0) - this.addSlidingWindowInfo.startInd > (this.addSlidingWindowInfo.points || 0))
683
683
  break;
@@ -698,15 +698,15 @@ let u = class extends U {
698
698
  style: {
699
699
  fill: ((p = (m = this.currentHeardBeat) == null ? void 0 : m.heardBeat) == null ? void 0 : p.index) === (c == null ? void 0 : c.index) ? "blue" : "#ccc"
700
700
  },
701
- onclick: (E) => {
701
+ onclick: (G) => {
702
702
  var X;
703
- !this.heartFight.mode || (E.target.attr({
703
+ !this.heartFight.mode || (G.target.attr({
704
704
  style: { fill: "blue" }
705
705
  }), (X = this.arrowGroup) == null || X.children().filter((A) => A.name === "arrow_box").forEach((A) => {
706
- A.id !== E.target.id && A.attr({
706
+ A.id !== G.target.id && A.attr({
707
707
  style: { fill: "#ccc" }
708
708
  });
709
- }), this.arrowLoopClick(c, E.target));
709
+ }), this.arrowLoopClick(c, G.target));
710
710
  }
711
711
  })), this.heartFight.heartrate && (a = ((D = this.AssistCtx) == null ? void 0 : D.measureText(`${(c == null ? void 0 : c.heartrate) || ""}`).width) || 0, (H = this.arrowGroup) == null || H.add(new W({
712
712
  cursor: "",
@@ -830,7 +830,7 @@ let u = class extends U {
830
830
  scrollRuler(e) {
831
831
  var i, a, s;
832
832
  (i = this.rulerGroup) == null || i.removeAll(), (a = this.sceneIns) == null || a.remove(this.rulerGroup);
833
- const t = F(this.isSingleMode ? 0 : e, ((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.SampleRate) || 0) / 1e3;
833
+ const t = L(this.isSingleMode ? 0 : e, ((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.SampleRate) || 0) / 1e3;
834
834
  this.drawRuler(t);
835
835
  }
836
836
  scrollArrow(e) {
@@ -838,55 +838,55 @@ let u = class extends U {
838
838
  (t = this.arrowGroup) == null || t.removeAll(), (i = this.sceneIns) == null || i.remove(this.arrowGroup), this.drawLoopArrow(e), this.drawHeardBeatLine(e);
839
839
  }
840
840
  };
841
- g([
841
+ u([
842
842
  w({
843
843
  required: !0,
844
844
  type: Number,
845
845
  validator: (e) => typeof e == "number"
846
846
  })
847
- ], u.prototype, "width", 2);
848
- g([
847
+ ], g.prototype, "width", 2);
848
+ u([
849
849
  w({
850
850
  required: !0,
851
851
  type: Number,
852
852
  validator: (e) => typeof e == "number"
853
853
  })
854
- ], u.prototype, "height", 2);
855
- g([
854
+ ], g.prototype, "height", 2);
855
+ u([
856
856
  w({
857
857
  default: 0,
858
858
  validator: (e) => typeof e == "number"
859
859
  })
860
- ], u.prototype, "MXEnlargeWaveWidth", 2);
861
- g([
860
+ ], g.prototype, "MXEnlargeWaveWidth", 2);
861
+ u([
862
862
  w({
863
863
  default: () => J
864
864
  })
865
- ], u.prototype, "LeadNameTextsPorps", 2);
866
- g([
865
+ ], g.prototype, "LeadNameTextsPorps", 2);
866
+ u([
867
867
  w({
868
868
  default: 0,
869
869
  type: Number,
870
870
  validator: (e) => typeof e == "number"
871
871
  })
872
- ], u.prototype, "MXEnlargeWaveHeight", 2);
873
- g([
872
+ ], g.prototype, "MXEnlargeWaveHeight", 2);
873
+ u([
874
874
  w({
875
875
  required: !0
876
876
  })
877
- ], u.prototype, "gridConfig", 2);
878
- g([
877
+ ], g.prototype, "gridConfig", 2);
878
+ u([
879
879
  w({
880
880
  default: 5,
881
881
  type: Number
882
882
  })
883
- ], u.prototype, "cellPoints", 2);
884
- g([
883
+ ], g.prototype, "cellPoints", 2);
884
+ u([
885
885
  w({
886
886
  required: !0
887
887
  })
888
- ], u.prototype, "conventionalECGConfig", 2);
889
- g([
888
+ ], g.prototype, "conventionalECGConfig", 2);
889
+ u([
890
890
  w({
891
891
  default: () => ({
892
892
  leadHedeWidth: 20,
@@ -894,18 +894,18 @@ g([
894
894
  leadHedeLineWidth: 2
895
895
  })
896
896
  })
897
- ], u.prototype, "leadHeadConfig", 2);
898
- g([
897
+ ], g.prototype, "leadHeadConfig", 2);
898
+ u([
899
899
  w({
900
900
  required: !0
901
901
  })
902
- ], u.prototype, "formatEcgData", 2);
903
- g([
902
+ ], g.prototype, "formatEcgData", 2);
903
+ u([
904
904
  w({
905
905
  required: !0
906
906
  })
907
- ], u.prototype, "leadModel", 2);
908
- g([
907
+ ], g.prototype, "leadModel", 2);
908
+ u([
909
909
  w({
910
910
  default: () => ({
911
911
  lineColor: "#000",
@@ -914,16 +914,16 @@ g([
914
914
  fontSize: 15
915
915
  })
916
916
  })
917
- ], u.prototype, "leadConfig", 2);
918
- g([
917
+ ], g.prototype, "leadConfig", 2);
918
+ u([
919
919
  w({
920
920
  default: () => ({
921
921
  leadIdxs: [1, 6, 10],
922
922
  leadNames: [1, 6, 10]
923
923
  })
924
924
  })
925
- ], u.prototype, "longLeadConfig", 2);
926
- g([
925
+ ], g.prototype, "longLeadConfig", 2);
926
+ u([
927
927
  w({
928
928
  default: () => ({
929
929
  isShow: !1,
@@ -935,8 +935,8 @@ g([
935
935
  telectricalaxis: !1
936
936
  })
937
937
  })
938
- ], u.prototype, "heartFight", 2);
939
- g([
938
+ ], g.prototype, "heartFight", 2);
939
+ u([
940
940
  w({
941
941
  default: () => ({
942
942
  isShow: !0,
@@ -950,81 +950,81 @@ g([
950
950
  }
951
951
  })
952
952
  })
953
- ], u.prototype, "scrollConfig", 2);
954
- g([
953
+ ], g.prototype, "scrollConfig", 2);
954
+ u([
955
955
  w({
956
956
  default: () => ({
957
957
  isShow: !1
958
958
  })
959
959
  })
960
- ], u.prototype, "rulerConfig", 2);
961
- g([
960
+ ], g.prototype, "rulerConfig", 2);
961
+ u([
962
962
  w({
963
963
  default: () => ({
964
964
  isShow: !1
965
965
  })
966
966
  })
967
- ], u.prototype, "measurRulerConfig", 2);
968
- g([
967
+ ], g.prototype, "measurRulerConfig", 2);
968
+ u([
969
969
  w({
970
970
  default: () => ({
971
971
  isShow: !1
972
972
  })
973
973
  })
974
- ], u.prototype, "paralleRulerConfig", 2);
975
- g([
974
+ ], g.prototype, "paralleRulerConfig", 2);
975
+ u([
976
976
  w({
977
977
  default: () => ({
978
978
  isShow: !1
979
979
  })
980
980
  })
981
- ], u.prototype, "magnifierRulerConfig", 2);
982
- g([
981
+ ], g.prototype, "magnifierRulerConfig", 2);
982
+ u([
983
983
  w({
984
984
  default: 60
985
985
  })
986
- ], u.prototype, "ventricularRate", 2);
987
- g([
986
+ ], g.prototype, "ventricularRate", 2);
987
+ u([
988
988
  w({
989
989
  default: M.CompoundWave
990
990
  })
991
- ], u.prototype, "enlargeWaveMode", 2);
992
- g([
991
+ ], g.prototype, "enlargeWaveMode", 2);
992
+ u([
993
993
  w({
994
994
  default: () => []
995
995
  })
996
- ], u.prototype, "enlargeGains", 2);
997
- g([
996
+ ], g.prototype, "enlargeGains", 2);
997
+ u([
998
998
  w({
999
999
  default: () => []
1000
1000
  })
1001
- ], u.prototype, "enlargeSpeeds", 2);
1002
- g([
1001
+ ], g.prototype, "enlargeSpeeds", 2);
1002
+ u([
1003
1003
  w({
1004
1004
  default: () => ({
1005
1005
  defaultSelect: 1
1006
1006
  })
1007
1007
  })
1008
- ], u.prototype, "singleModeInfo", 2);
1009
- g([
1008
+ ], g.prototype, "singleModeInfo", 2);
1009
+ u([
1010
1010
  w({
1011
1011
  default: !1
1012
1012
  })
1013
- ], u.prototype, "isSyncAnalyseValueCheck", 2);
1014
- g([
1013
+ ], g.prototype, "isSyncAnalyseValueCheck", 2);
1014
+ u([
1015
1015
  O(200)
1016
- ], u.prototype, "zoomWave", 1);
1017
- g([
1016
+ ], g.prototype, "zoomWave", 1);
1017
+ u([
1018
1018
  O(200)
1019
- ], u.prototype, "nativeScrollFunc", 1);
1020
- g([
1019
+ ], g.prototype, "nativeScrollFunc", 1);
1020
+ u([
1021
1021
  O(200)
1022
- ], u.prototype, "handleScroll", 1);
1023
- u = g([
1022
+ ], g.prototype, "handleScroll", 1);
1023
+ g = u([
1024
1024
  Q({
1025
1025
  name: "Methods"
1026
1026
  })
1027
- ], u);
1027
+ ], g);
1028
1028
  export {
1029
- u as default
1029
+ g as default
1030
1030
  };
@@ -0,0 +1,6 @@
1
+ import a from "./index2.js";
2
+ import { withInstall as r } from "@costy-plus/utils";
3
+ const o = r(a);
4
+ export {
5
+ o as default
6
+ };
@@ -0,0 +1,10 @@
1
+ import Methods from './medthod';
2
+ declare const EnlargeWaveView_base: import("vue-class-component/lib/declarations").VueClass<Methods>;
3
+ declare class EnlargeWaveView extends EnlargeWaveView_base {
4
+ protected mounted(): void;
5
+ protected init(): void;
6
+ protected initWaveFormPeer(): void;
7
+ protected combinationDrawing(): void;
8
+ }
9
+ declare const _sfc_main: typeof EnlargeWaveView;
10
+ export default _sfc_main;
@@ -0,0 +1,58 @@
1
+ import "element-ui/lib/theme-chalk/button.css";
2
+ import "element-ui/lib/theme-chalk/icon.css";
3
+ import "element-ui/lib/theme-chalk/checkbox.css";
4
+ import "element-ui/lib/theme-chalk/descriptions.css";
5
+ import "element-ui/lib/theme-chalk/descriptions-item.css";
6
+ import "./style/index.css";
7
+ import "vue";
8
+ import d, { mixins as v } 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";
9
+ 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";
10
+ import { Button as m, Checkbox as s, Descriptions as p, DescriptionsItem as c } from "element-ui";
11
+ import f from "../BackgroundGrid/index2.js";
12
+ import { init as l } from "zrender";
13
+ import g from "./medthod.js";
14
+ var w = Object.defineProperty, x = Object.getOwnPropertyDescriptor, u = (i, t, n, r) => {
15
+ for (var e = r > 1 ? void 0 : r ? x(t, n) : t, o = i.length - 1, a; o >= 0; o--)
16
+ (a = i[o]) && (e = (r ? a(t, n, e) : a(e)) || e);
17
+ return r && e && w(t, n, e), e;
18
+ };
19
+ let h = class extends v(g) {
20
+ mounted() {
21
+ this.init();
22
+ }
23
+ init() {
24
+ this.initWaveFormPeer(), this.combinationDrawing();
25
+ }
26
+ initWaveFormPeer() {
27
+ const i = document.getElementById(
28
+ `${this.prefixId}enlarge-wave-from-box`
29
+ );
30
+ this.sceneIns = l(i, {
31
+ width: this.containerWH.width,
32
+ height: this.containerWH.height,
33
+ devicePixelRatio: 2
34
+ });
35
+ const t = document.getElementById(
36
+ `${this.prefixId}MXEnlargeGrid`
37
+ );
38
+ this.AssistCtx = t.getContext("2d");
39
+ }
40
+ combinationDrawing() {
41
+ this.createLeadHead(), this.createLeadName(), this.createSensAndSpeed(), this.createWaveFrom(), this.drawWaveFrom();
42
+ }
43
+ };
44
+ h = u([
45
+ d({
46
+ name: "EnlargeWaveView",
47
+ components: {
48
+ MXBackgroundGrid: f,
49
+ [m.name]: m,
50
+ [s.name]: s,
51
+ [p.name]: p,
52
+ [c.name]: c
53
+ }
54
+ })
55
+ ], h);
56
+ export {
57
+ h as default
58
+ };
@@ -0,0 +1,107 @@
1
+ var c = function() {
2
+ var t = this, n = t.$createElement, e = t._self._c || n;
3
+ return e("div", {
4
+ staticClass: "mx-enlarge-wave_container",
5
+ class: t.className,
6
+ style: {
7
+ width: `${t.width}px`,
8
+ height: `${t.height}px`
9
+ },
10
+ attrs: {
11
+ id: t.prefixId + "mx-enlarge-wave"
12
+ }
13
+ }, [e("div", {
14
+ staticClass: "wave-selects"
15
+ }, [e("div", t._l(t.leadNames, function(i) {
16
+ return e("el-button", {
17
+ key: i.val,
18
+ class: {
19
+ active: t.leadNameActive.val === i.val
20
+ },
21
+ attrs: {
22
+ size: "mini"
23
+ },
24
+ on: {
25
+ click: function(a) {
26
+ return t.selectLeadName(i);
27
+ }
28
+ }
29
+ }, [t._v(" " + t._s(i.name) + " ")]);
30
+ }), 1)]), e("div", {
31
+ staticClass: "container-box"
32
+ }, [e("div", {
33
+ staticClass: "main-box",
34
+ on: {
35
+ click: function(i) {
36
+ return i.preventDefault(), i.stopPropagation(), t.mainBoxDbClick.apply(null, arguments);
37
+ }
38
+ }
39
+ }, [e("MXBackgroundGrid", {
40
+ attrs: {
41
+ width: t.containerWH.width,
42
+ height: t.containerWH.height,
43
+ "grid-config": t.gridConfig,
44
+ "layer-id": t.prefixId + "MXEnlargeGrid",
45
+ magnification: t.magnification
46
+ }
47
+ }), e("div", {
48
+ staticClass: "enlarge-wave-from-box_container",
49
+ attrs: {
50
+ id: t.prefixId + "enlarge-wave-from-box"
51
+ }
52
+ })], 1)]), e("div", {
53
+ staticClass: "operate-box"
54
+ }, [e("div", {
55
+ staticClass: "operate-box_item"
56
+ }, [e("span", [t._v("\u589E\u76CA")]), e("el-button", {
57
+ staticClass: "icon-tips",
58
+ attrs: {
59
+ icon: "el-icon-circle-plus-outline",
60
+ circle: ""
61
+ },
62
+ on: {
63
+ click: function(i) {
64
+ return t.toggleGain(!0);
65
+ }
66
+ }
67
+ }), e("el-button", {
68
+ staticClass: "icon-tips",
69
+ attrs: {
70
+ icon: "el-icon-remove-outline",
71
+ circle: ""
72
+ },
73
+ on: {
74
+ click: function(i) {
75
+ return t.toggleGain(!1);
76
+ }
77
+ }
78
+ })], 1), e("div", {
79
+ staticClass: "operate-box_item"
80
+ }, [e("span", [t._v("\u8D70\u7EB8\u901F\u5EA6")]), e("el-button", {
81
+ staticClass: "icon-tips",
82
+ attrs: {
83
+ icon: "el-icon-circle-plus-outline",
84
+ circle: ""
85
+ },
86
+ on: {
87
+ click: function(i) {
88
+ return t.toggleSpeeds(!0);
89
+ }
90
+ }
91
+ }), e("el-button", {
92
+ staticClass: "icon-tips",
93
+ attrs: {
94
+ icon: "el-icon-remove-outline",
95
+ circle: ""
96
+ },
97
+ on: {
98
+ click: function(i) {
99
+ return t.toggleSpeeds(!1);
100
+ }
101
+ }
102
+ })], 1)])]);
103
+ }, s = [];
104
+ export {
105
+ c as render,
106
+ s as staticRenderFns
107
+ };