costy-plus 1.0.78-0 → 1.0.80-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.
@@ -5,6 +5,7 @@ declare class MXBackgroundGrid extends MXBackgroundGrid_base {
5
5
  protected againInitGridTimer: any;
6
6
  protected watchWidth(): void;
7
7
  protected watchHeight(): void;
8
+ protected watchMagnification(): void;
8
9
  protected watchGridConfig(): void;
9
10
  protected get cellMg(): number;
10
11
  protected mounted(): void;
@@ -1,10 +1,10 @@
1
1
  import "vue";
2
2
  import w, { mixins as m } 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";
3
3
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
4
- import { Watch as d } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
4
+ import { Watch as c } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
5
5
  import I from "./PropsMinix.js";
6
- var C = Object.defineProperty, T = Object.getOwnPropertyDescriptor, g = (s, i, t, h) => {
7
- for (var e = h > 1 ? void 0 : h ? T(i, t) : i, n = s.length - 1, a; n >= 0; n--)
6
+ var C = Object.defineProperty, p = Object.getOwnPropertyDescriptor, d = (s, i, t, h) => {
7
+ for (var e = h > 1 ? void 0 : h ? p(i, t) : i, n = s.length - 1, a; n >= 0; n--)
8
8
  (a = s[n]) && (e = (h ? a(i, t, e) : a(e)) || e);
9
9
  return h && e && C(i, t, e), e;
10
10
  };
@@ -18,6 +18,9 @@ let l = class extends m(I) {
18
18
  watchHeight() {
19
19
  this.againInitGrid();
20
20
  }
21
+ watchMagnification() {
22
+ this.againInitGrid();
23
+ }
21
24
  watchGridConfig() {
22
25
  this.againInitGrid();
23
26
  }
@@ -45,21 +48,23 @@ let l = class extends m(I) {
45
48
  this.model === 0 ? (this.drawPoints(), this.drawRowAndCol()) : this.model === 1 && this.drawMesh();
46
49
  }
47
50
  drawPoints() {
48
- var a, o;
51
+ var o, g;
49
52
  let i = this.gridConfig.lineWidth === 1 ? 0.5 : 0, t = this.cellMg;
50
53
  const h = [], e = this.magnification > 1 ? this.gridConfig.lineWidth + 1 : this.gridConfig.lineWidth;
51
- for (this.beforeCtxDraw(
54
+ this.beforeCtxDraw(
52
55
  this.canvasIns,
53
56
  this.gridConfig.smallCellColor,
54
57
  e
55
- ); t < this.width; )
56
- h.push(t), t % this.cellMg === 0 ? t += e : t += this.cellMg - e;
58
+ );
57
59
  let n = 0;
60
+ for (; t < this.width; )
61
+ h.push(t), n % 2 === 0 ? t += e : t += this.cellMg - e, n += 1;
62
+ let a = 0;
58
63
  for (; i < this.height; ) {
59
- if (n % this.cellPoints !== 0)
64
+ if (a % this.cellPoints !== 0)
60
65
  for (let r = 0; r < h.length; r++)
61
- (r + 2) % this.cellPoints !== 0 && r % 2 === 0 && ((a = this.canvasIns) == null || a.moveTo(h[r], i), (o = this.canvasIns) == null || o.lineTo(h[r + 1], i));
62
- i += this.cellMg, n++;
66
+ (r + 2) % this.cellPoints !== 0 && r % 2 === 0 && ((o = this.canvasIns) == null || o.moveTo(h[r], i), (g = this.canvasIns) == null || g.lineTo(h[r + 1], i));
67
+ i += this.cellMg, a++;
63
68
  }
64
69
  this.afterDrawOver(this.canvasIns);
65
70
  }
@@ -76,7 +81,7 @@ let l = class extends m(I) {
76
81
  this.afterDrawOver(this.canvasIns);
77
82
  }
78
83
  drawMesh() {
79
- var e, n, a, o, r, c, f, v;
84
+ var e, n, a, o, g, r, f, v;
80
85
  const s = this.gridConfig.lineWidth === 1 ? 0.5 : 0;
81
86
  let i = s, t = s, h = 0;
82
87
  for (this.beforeCtxDraw(
@@ -90,7 +95,7 @@ let l = class extends m(I) {
90
95
  this.gridConfig.bigCellColor,
91
96
  this.gridConfig.lineWidth
92
97
  ); i < this.width || t < this.height; )
93
- h % this.cellPoints === 0 && ((r = this.canvasIns) == null || r.moveTo(i, 0), (c = this.canvasIns) == null || c.lineTo(i, this.height), (f = this.canvasIns) == null || f.moveTo(0, t), (v = this.canvasIns) == null || v.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
98
+ h % this.cellPoints === 0 && ((g = this.canvasIns) == null || g.moveTo(i, 0), (r = this.canvasIns) == null || r.lineTo(i, this.height), (f = this.canvasIns) == null || f.moveTo(0, t), (v = this.canvasIns) == null || v.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
94
99
  this.afterDrawOver(this.canvasIns);
95
100
  }
96
101
  beforeCtxDraw(s, i, t) {
@@ -100,16 +105,19 @@ let l = class extends m(I) {
100
105
  s.stroke(), s.restore();
101
106
  }
102
107
  };
103
- g([
104
- d("width")
108
+ d([
109
+ c("width")
105
110
  ], l.prototype, "watchWidth", 1);
106
- g([
107
- d("height")
111
+ d([
112
+ c("height")
108
113
  ], l.prototype, "watchHeight", 1);
109
- g([
110
- d("gridConfig", { deep: !0 })
114
+ d([
115
+ c("magnification")
116
+ ], l.prototype, "watchMagnification", 1);
117
+ d([
118
+ c("gridConfig", { deep: !0 })
111
119
  ], l.prototype, "watchGridConfig", 1);
112
- l = g([
120
+ l = d([
113
121
  w({
114
122
  name: "MXBackgroundGrid"
115
123
  })
@@ -1,5 +1,5 @@
1
1
  var C = function() {
2
- var t, i, l, o, r, s, n, d, g, v, c, h, m, f, a = this, u = a.$createElement, e = a._self._c || u;
2
+ var t, i, l, o, r, s, n, g, d, v, c, h, m, f, a = this, u = a.$createElement, e = a._self._c || u;
3
3
  return e("div", {
4
4
  style: {
5
5
  width: `${a.width}px`,
@@ -13,6 +13,7 @@ var C = function() {
13
13
  width: a.canvasContainer.width,
14
14
  height: a.canvasContainer.height,
15
15
  "grid-config": a.gridConfig,
16
+ magnification: a.sceneMagnification,
16
17
  "layer-id": "MXGrid"
17
18
  }
18
19
  }), a.measurRulerConfig.isShow ? e("MeasuringRuler", a._g({
@@ -65,8 +66,8 @@ var C = function() {
65
66
  "speed-value": ((s = a.formatEcgData) === null || s === void 0 ? void 0 : s.speed) || 0,
66
67
  sens: a.formatEcgData.sens,
67
68
  step: ((n = a.formatEcgData) === null || n === void 0 ? void 0 : n.step) || 0,
68
- "sample-rate": ((d = a.formatEcgData) === null || d === void 0 ? void 0 : d.processedData.otherParams.SampleRate) || 0,
69
- sensitivity: ((g = a.formatEcgData) === null || g === void 0 ? void 0 : g.processedData.otherParams.Sensitivity) || 0,
69
+ "sample-rate": ((g = a.formatEcgData) === null || g === void 0 ? void 0 : g.processedData.otherParams.SampleRate) || 0,
70
+ sensitivity: ((d = a.formatEcgData) === null || d === void 0 ? void 0 : d.processedData.otherParams.Sensitivity) || 0,
70
71
  "normal-data": ((v = a.formatEcgData) === null || v === void 0 ? void 0 : v.processedData.originData.Data) || [],
71
72
  "complex-data": ((c = a.formatEcgData) === null || c === void 0 ? void 0 : c.processedData.originData.ComplexData) || [],
72
73
  "lead-name-list": a.leadNameList,
@@ -60,7 +60,6 @@ export default class Methods extends Vue {
60
60
  protected isSyncAnalyseValueCheck: boolean;
61
61
  protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
62
62
  protected sceneIns: Readonly<ZRenderType | null>;
63
- protected layerBgGroup: Readonly<Group | null>;
64
63
  protected leadHeadGroup: Readonly<Group | null>;
65
64
  protected splitLineGroup: Readonly<Group | null>;
66
65
  protected rowAndColwaveFromGroup: Readonly<Group | null>;
@@ -165,6 +164,9 @@ export default class Methods extends Vue {
165
164
  protected sceneIsMouseDown: Readonly<boolean>;
166
165
  protected sceneIsMouseDownX: number;
167
166
  protected isShowEnlargeWave: boolean;
167
+ /** 双指缩放相关 */
168
+ protected sceneFirstDistance: number;
169
+ protected sceneMagnification: number;
168
170
  /** 实际画布容器大小 */
169
171
  protected get canvasContainer(): {
170
172
  width: number;
@@ -193,6 +195,8 @@ export default class Methods extends Vue {
193
195
  protected onDbClickWaveFrom(e: ElementEvent, type: 'single' | 'rowAndCol' | 'add'): void;
194
196
  /** 场景画布移动事件 */
195
197
  protected sceneInsMousemove(event: ElementEvent): void;
198
+ /** 放大画布事件 */
199
+ protected zoomWave(): void;
196
200
  /** 场景画布按下事件 */
197
201
  protected sceneInsMouseDown(event: ElementEvent): void;
198
202
  /** 场景画布抬起事件 */