costy-plus 1.1.9-0 → 1.1.11-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/src/CommonWaveForm/index.vue.d.ts +1 -1
- package/dist/es/src/CommonWaveForm/index.vue_vue_type_script_lang.js +13 -13
- package/dist/es/src/CommonWaveForm/method.d.ts +1 -1
- package/dist/es/src/CommonWaveForm/method.js +120 -119
- package/dist/es/static/UEditor/themes/default/css/ueditor.css +63 -5
- package/dist/es/static/UEditor/ueditor.all.js +26100 -25983
- package/dist/lib/src/CommonWaveForm/index.vue.d.ts +1 -1
- package/dist/lib/src/CommonWaveForm/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/CommonWaveForm/method.d.ts +1 -1
- package/dist/lib/src/CommonWaveForm/method.js +1 -1
- package/dist/lib/static/UEditor/themes/default/css/ueditor.css +63 -5
- package/dist/lib/static/UEditor/ueditor.all.js +26100 -25983
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ declare class CommonWaveForm extends CommonWaveForm_base {
|
|
|
14
14
|
protected watchLongLeadConfig(): void;
|
|
15
15
|
protected watchPosStart(): void;
|
|
16
16
|
protected destroyed(): void;
|
|
17
|
-
protected repaint(): void;
|
|
17
|
+
protected repaint(isInitConfigInfo?: boolean): void;
|
|
18
18
|
created(): void;
|
|
19
19
|
mounted(): void;
|
|
20
20
|
}
|
|
@@ -6,13 +6,13 @@ import { Watch as r } from "../../node_modules/.pnpm/vue-property-decorator@9.1.
|
|
|
6
6
|
import d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js";
|
|
7
7
|
import m from "../MeasuringRuler/index2.js";
|
|
8
8
|
import f from "../MagnifierWave/index.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import u from "../ParallelRuler/index2.js";
|
|
10
|
+
import g from "../BackgroundGrid/index2.js";
|
|
11
11
|
import w from "./method.js";
|
|
12
|
-
var C = Object.defineProperty, v = Object.getOwnPropertyDescriptor, t = (i, a,
|
|
13
|
-
for (var o =
|
|
14
|
-
(h = i[p]) && (o = (
|
|
15
|
-
return
|
|
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
16
|
};
|
|
17
17
|
let e = class extends c(w) {
|
|
18
18
|
constructor() {
|
|
@@ -31,7 +31,7 @@ let e = class extends c(w) {
|
|
|
31
31
|
this.repaint();
|
|
32
32
|
}
|
|
33
33
|
watchWaveLists() {
|
|
34
|
-
this.repaint();
|
|
34
|
+
this.repaint(!1);
|
|
35
35
|
}
|
|
36
36
|
watchLeadHeadConfig() {
|
|
37
37
|
var i, a;
|
|
@@ -56,13 +56,13 @@ let e = class extends c(w) {
|
|
|
56
56
|
destroyed() {
|
|
57
57
|
this.repaintTimer && clearTimeout(this.repaintTimer);
|
|
58
58
|
}
|
|
59
|
-
repaint() {
|
|
59
|
+
repaint(i = !0) {
|
|
60
60
|
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
61
|
-
var
|
|
62
|
-
|
|
61
|
+
var a, s;
|
|
62
|
+
i && ((a = this.sceneIns) == null || a.clear(), (s = this.sceneIns) == null || s.resize({
|
|
63
63
|
width: this.canvasContainer.width,
|
|
64
64
|
height: this.canvasContainer.height
|
|
65
|
-
}), this.initCreatedConfig(), this.combinationDrawing();
|
|
65
|
+
}), this.initCreatedConfig()), this.combinationDrawing(i);
|
|
66
66
|
}, 200);
|
|
67
67
|
}
|
|
68
68
|
created() {
|
|
@@ -110,9 +110,9 @@ e = t([
|
|
|
110
110
|
name: "CommonWaveForm",
|
|
111
111
|
components: {
|
|
112
112
|
vueScroll: d,
|
|
113
|
-
MXBackgroundGrid:
|
|
113
|
+
MXBackgroundGrid: g,
|
|
114
114
|
MXMeasuringRuler: m,
|
|
115
|
-
MXParallelRuler:
|
|
115
|
+
MXParallelRuler: u,
|
|
116
116
|
MXMagnifierWave: f
|
|
117
117
|
}
|
|
118
118
|
})
|
|
@@ -162,7 +162,7 @@ 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 combinationDrawing(): void;
|
|
165
|
+
protected combinationDrawing(isInitConfigInfo?: boolean): void;
|
|
166
166
|
/** 计算心拍 */
|
|
167
167
|
protected calcHeartBeatPositions(): void;
|
|
168
168
|
/** 初始化 波形 滑动窗口配置 */
|
|
@@ -15,13 +15,13 @@ import Q from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/nod
|
|
|
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 V, getStepForSpeed as M, getPrintLengthToPx as ee, getSens as
|
|
18
|
+
import { throttling as V, getStepForSpeed as M, getPrintLengthToPx as ee, getSens as H, getDataLenTimes as O, getPointIdxForPx as x, getActualY as L, calcMs as te, calcBpm as ie } from "@costy-plus/utils";
|
|
19
19
|
import * as se from "zrender";
|
|
20
20
|
import { Group as y, Polyline as R, Line as z, Text as W, Polygon as ae, util as oe } from "zrender";
|
|
21
21
|
var ne = Object.defineProperty, le = Object.getOwnPropertyDescriptor, c = (e, t, i, s) => {
|
|
22
|
-
for (var
|
|
23
|
-
(n = e[
|
|
24
|
-
return s &&
|
|
22
|
+
for (var a = s > 1 ? void 0 : s ? le(t, i) : t, o = e.length - 1, n; o >= 0; o--)
|
|
23
|
+
(n = e[o]) && (a = (s ? n(t, i, a) : n(a)) || a);
|
|
24
|
+
return s && a && ne(t, i, a), a;
|
|
25
25
|
};
|
|
26
26
|
let u = class extends q {
|
|
27
27
|
constructor() {
|
|
@@ -50,8 +50,8 @@ let u = class extends q {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
destroyed() {
|
|
53
|
-
var e, t, i, s,
|
|
54
|
-
this.sceneInsEventOff(), (e = this.rowAndColwaveFromGroup) == null || e.removeAll(), (t = this.singleWaveFromGroup) == null || t.removeAll(), (i = this.addwaveFromGroup) == null || i.removeAll(), (s = this.leadHeadGroup) == null || s.removeAll(), (
|
|
53
|
+
var e, t, i, s, a, o, n, r, l, d, h;
|
|
54
|
+
this.sceneInsEventOff(), (e = this.rowAndColwaveFromGroup) == null || e.removeAll(), (t = this.singleWaveFromGroup) == null || t.removeAll(), (i = this.addwaveFromGroup) == null || i.removeAll(), (s = this.leadHeadGroup) == null || s.removeAll(), (a = this.splitLineGroup) == null || a.removeAll(), (o = this.leadHeadNameGroup) == null || o.removeAll(), (n = this.leadHeadOffAndDelGroup) == null || n.removeAll(), (r = this.rulerGroup) == null || r.removeAll(), (l = this.arrowGroup) == null || l.removeAll(), (d = this.heardBeatLineGroup) == null || d.removeAll(), (h = this.sceneIns) == null || h.dispose();
|
|
55
55
|
}
|
|
56
56
|
initCreatedConfig() {
|
|
57
57
|
this.vuescrollWH.width = this.width, this.vuescrollWH.height = this.height, this.calcHeartBeatPositions(), this.initConfig();
|
|
@@ -81,8 +81,8 @@ let u = class extends q {
|
|
|
81
81
|
});
|
|
82
82
|
}) : (this.scrollWaveFrom(e), this.scrollRuler(e), this.scrollArrow(e));
|
|
83
83
|
}
|
|
84
|
-
combinationDrawing() {
|
|
85
|
-
this.drawLeadHead(), this.drawColSplitLine(), this.initSlidingWindowInfo(), this.drawRulerNotes(), this.drawWaveFrom();
|
|
84
|
+
combinationDrawing(e = !0) {
|
|
85
|
+
e && (this.drawLeadHead(), this.drawColSplitLine(), this.initSlidingWindowInfo(), this.drawRulerNotes()), this.drawWaveFrom();
|
|
86
86
|
}
|
|
87
87
|
calcHeartBeatPositions() {
|
|
88
88
|
this.heartBeatPosition = [];
|
|
@@ -108,16 +108,16 @@ let u = class extends q {
|
|
|
108
108
|
if (this.slidingWindowInfo = {
|
|
109
109
|
points: this.slidingWindowInfo.points !== t || this.leadModel.isSingleMode ? t : this.slidingWindowInfo.points,
|
|
110
110
|
startInd: this.slidingWindowInfo.startInd || 0,
|
|
111
|
-
endInd: this.slidingWindowInfo.
|
|
111
|
+
endInd: (this.slidingWindowInfo.startInd || 0) + t
|
|
112
112
|
}, this.scrollConfig.isShow && !this.leadModel.isSingleMode) {
|
|
113
|
-
const s = M(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate),
|
|
114
|
-
this.vuescrollWH.width = this.canvasContainer.width + (
|
|
113
|
+
const s = M(this.leadModel.publicSpeed, this.gridConfig.cellMg, this.leadModel.publicSampleRate), a = this.dataTotalLength * s;
|
|
114
|
+
this.vuescrollWH.width = this.canvasContainer.width + (a || 0) - this.splitPoint;
|
|
115
115
|
}
|
|
116
116
|
const i = Math.ceil((this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / e);
|
|
117
117
|
this.addSlidingWindowInfo = {
|
|
118
118
|
points: this.addSlidingWindowInfo.points !== i || this.leadModel.isSingleMode ? i : this.addSlidingWindowInfo.points,
|
|
119
119
|
startInd: this.addSlidingWindowInfo.startInd || 0,
|
|
120
|
-
endInd: this.addSlidingWindowInfo.endInd
|
|
120
|
+
endInd: (this.addSlidingWindowInfo.endInd || 0) + t
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
calcHighestAndLowestPoint() {
|
|
@@ -215,7 +215,7 @@ let u = class extends q {
|
|
|
215
215
|
(e = this.sceneIns) == null || e.off("mousemove", this.sceneInsMousemove), (t = this.sceneIns) == null || t.off("mousedown", this.sceneInsMouseDown), (i = this.sceneIns) == null || i.off("mouseup", this.sceneInsMouseUp);
|
|
216
216
|
}
|
|
217
217
|
drawLeadHead() {
|
|
218
|
-
var i, s,
|
|
218
|
+
var i, s, a, o, n, r;
|
|
219
219
|
(i = this.leadHeadGroup) == null || i.removeAll(), (s = this.sceneIns) == null || s.remove(this.leadHeadGroup);
|
|
220
220
|
let e = "", t = !1;
|
|
221
221
|
e:
|
|
@@ -224,11 +224,11 @@ let u = class extends q {
|
|
|
224
224
|
break e;
|
|
225
225
|
if (!!this.waveConfigs[l - 1].isShowLeadHead) {
|
|
226
226
|
if (l <= this.leadModel.line)
|
|
227
|
-
e = (this.leadNames || [])[l - 1] || "", this.waveConfigs[l - 1].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(e) && (t = !0), this.leadHeadConfig.isShowLeadCalibration !== !1 && ((
|
|
227
|
+
e = (this.leadNames || [])[l - 1] || "", this.waveConfigs[l - 1].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(e) && (t = !0), this.leadHeadConfig.isShowLeadCalibration !== !1 && ((a = this.leadHeadGroup) == null || a.add(
|
|
228
228
|
this.createLeadHead(
|
|
229
229
|
0,
|
|
230
230
|
this.waveConfigs[l - 1].posY || l * this.splitBlockHeight,
|
|
231
|
-
|
|
231
|
+
H(this.waveConfigs[l - 1].gain, this.gridConfig.cellMg),
|
|
232
232
|
t
|
|
233
233
|
)
|
|
234
234
|
));
|
|
@@ -238,8 +238,8 @@ let u = class extends q {
|
|
|
238
238
|
e = this.leadNames[this.longLeadConfig.leadNames[this.longLeadConfig.leadNames[l - this.leadModel.line - 1]]], this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(e) && (t = !0), this.leadHeadConfig.isShowLeadCalibration !== !1 && ((n = this.leadHeadGroup) == null || n.add(
|
|
239
239
|
this.createLeadHead(
|
|
240
240
|
0,
|
|
241
|
-
((
|
|
242
|
-
|
|
241
|
+
((o = this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]]) == null ? void 0 : o.posY) || l * this.splitBlockHeight,
|
|
242
|
+
H(this.waveConfigs[this.longLeadConfig.leadIdxs[l - this.leadModel.line - 1]].gain, this.gridConfig.cellMg),
|
|
243
243
|
t
|
|
244
244
|
)
|
|
245
245
|
));
|
|
@@ -249,7 +249,7 @@ let u = class extends q {
|
|
|
249
249
|
(r = this.sceneIns) == null || r.add(this.leadHeadGroup);
|
|
250
250
|
}
|
|
251
251
|
createLeadHead(e, t, i, s) {
|
|
252
|
-
const
|
|
252
|
+
const a = this.leadHeadConfig.leadHedeWidth / 4;
|
|
253
253
|
return i = s ? i / 2 : i, new R({
|
|
254
254
|
cursor: "",
|
|
255
255
|
shape: {
|
|
@@ -259,23 +259,23 @@ let u = class extends q {
|
|
|
259
259
|
0 + t
|
|
260
260
|
],
|
|
261
261
|
[
|
|
262
|
-
|
|
262
|
+
a + e,
|
|
263
263
|
0 + t
|
|
264
264
|
],
|
|
265
265
|
[
|
|
266
|
-
|
|
266
|
+
a + e,
|
|
267
267
|
-i + t
|
|
268
268
|
],
|
|
269
269
|
[
|
|
270
|
-
3 *
|
|
270
|
+
3 * a + e,
|
|
271
271
|
-i + t
|
|
272
272
|
],
|
|
273
273
|
[
|
|
274
|
-
3 *
|
|
274
|
+
3 * a + e,
|
|
275
275
|
0 + t
|
|
276
276
|
],
|
|
277
277
|
[
|
|
278
|
-
4 *
|
|
278
|
+
4 * a + e,
|
|
279
279
|
0 + t
|
|
280
280
|
]
|
|
281
281
|
]
|
|
@@ -287,8 +287,8 @@ let u = class extends q {
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
drawColSplitLine() {
|
|
290
|
-
var
|
|
291
|
-
(
|
|
290
|
+
var o, n, r, l, d;
|
|
291
|
+
(o = this.splitLineGroup) == null || o.removeAll(), (n = this.sceneIns) == null || n.remove(this.splitLineGroup);
|
|
292
292
|
const e = (this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / (this.leadModel.column || 1);
|
|
293
293
|
if (this.splitPoint = e, this.leadModel.isSingleMode) {
|
|
294
294
|
const h = M(
|
|
@@ -301,7 +301,7 @@ let u = class extends q {
|
|
|
301
301
|
), v = parseInt(`${p / 1e3 % 60}`, 10);
|
|
302
302
|
this.splitPoint = v * (this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0) * (h || 0);
|
|
303
303
|
}
|
|
304
|
-
let t = 0, i = 0, s = 0,
|
|
304
|
+
let t = 0, i = 0, s = 0, a = 0;
|
|
305
305
|
for (let h = 1; h <= this.leadModel.column - 1; h++) {
|
|
306
306
|
t = h * e + this.leadHeadConfig.leadHedeWidth, i = h * this.leadModel.line;
|
|
307
307
|
e:
|
|
@@ -310,18 +310,18 @@ let u = class extends q {
|
|
|
310
310
|
break e;
|
|
311
311
|
if ((this.waveConfigs || [])[p - 1 + i].posX !== void 0 && (t = (this.waveConfigs || [])[p - 1 + i].posX), s = (this.waveConfigs || [])[p - 1 + i].leadIdx, s === void 0)
|
|
312
312
|
break;
|
|
313
|
-
|
|
313
|
+
a = H((this.waveConfigs || [])[p - 1 + i].gain, this.gridConfig.cellMg), (this.waveConfigs || [])[p - 1 + i].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.leadNames[s]) ? (r = this.splitLineGroup) == null || r.add(
|
|
314
314
|
this.creatSplitLine(
|
|
315
315
|
t,
|
|
316
|
-
((this.waveConfigs || [])[p - 1 + i].posY || p * this.splitBlockHeight) - (
|
|
317
|
-
|
|
316
|
+
((this.waveConfigs || [])[p - 1 + i].posY || p * this.splitBlockHeight) - (a || 0) / 2 * 0.5,
|
|
317
|
+
a,
|
|
318
318
|
!0
|
|
319
319
|
)
|
|
320
320
|
) : (l = this.splitLineGroup) == null || l.add(
|
|
321
321
|
this.creatSplitLine(
|
|
322
322
|
t,
|
|
323
|
-
((this.waveConfigs || [])[p - 1 + i].posY || p * this.splitBlockHeight) - (
|
|
324
|
-
|
|
323
|
+
((this.waveConfigs || [])[p - 1 + i].posY || p * this.splitBlockHeight) - (a || 0) * 0.5,
|
|
324
|
+
a
|
|
325
325
|
)
|
|
326
326
|
);
|
|
327
327
|
}
|
|
@@ -344,7 +344,7 @@ let u = class extends q {
|
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
drawRulerNotes() {
|
|
347
|
-
var s,
|
|
347
|
+
var s, a;
|
|
348
348
|
if (!this.rulerConfig.isShow)
|
|
349
349
|
return;
|
|
350
350
|
const e = {
|
|
@@ -365,22 +365,22 @@ let u = class extends q {
|
|
|
365
365
|
y: this.canvasContainer.height - this.ruleH
|
|
366
366
|
}, e)
|
|
367
367
|
});
|
|
368
|
-
(s = this.sceneIns) == null || s.add(i), (
|
|
368
|
+
(s = this.sceneIns) == null || s.add(i), (a = this.sceneIns) == null || a.add(t);
|
|
369
369
|
}
|
|
370
370
|
drawRuler(e = 0) {
|
|
371
371
|
var n, r, l;
|
|
372
372
|
if (this.timersCopy = e, !this.rulerConfig.isShow)
|
|
373
373
|
return;
|
|
374
374
|
const t = this.dataTotalTimes * 2;
|
|
375
|
-
let i = this.leadHeadConfig.leadHedeWidth, s = 0,
|
|
376
|
-
const
|
|
375
|
+
let i = this.leadHeadConfig.leadHedeWidth, s = 0, a = t;
|
|
376
|
+
const o = M(this.rulerConfig.speed, this.gridConfig.cellMg, this.rulerConfig.sampleRate);
|
|
377
377
|
if (this.leadModel.isContinuous)
|
|
378
|
-
|
|
379
|
-
else if (!this.leadModel.add &&
|
|
380
|
-
const d = x(this.splitPoint * (this.leadModel.column || 1),
|
|
381
|
-
|
|
378
|
+
a = t * 5;
|
|
379
|
+
else if (!this.leadModel.add && o) {
|
|
380
|
+
const d = x(this.splitPoint * (this.leadModel.column || 1), o), h = O(d, this.rulerConfig.sampleRate || 0) / 1e3;
|
|
381
|
+
a = e + h;
|
|
382
382
|
}
|
|
383
|
-
for (let d = e; d <=
|
|
383
|
+
for (let d = e; d <= a; d = +(d + 0.1).toFixed(1))
|
|
384
384
|
d !== e && (i += this.rulerStep), d % 1 === 0 ? (s = this.canvasContainer.height - 10, (n = this.rulerGroup) == null || n.add(new W({
|
|
385
385
|
cursor: "",
|
|
386
386
|
style: {
|
|
@@ -407,28 +407,28 @@ let u = class extends q {
|
|
|
407
407
|
(l = this.sceneIns) == null || l.add(this.rulerGroup);
|
|
408
408
|
}
|
|
409
409
|
drawWaveFrom() {
|
|
410
|
-
var e, t, i;
|
|
411
|
-
this.leadModel.isSingleMode ? (this.addWaveDataCopy = [], this.waveDataCopy = [], this.createSingleWaveFrom(), (
|
|
410
|
+
var e, t, i, s, a;
|
|
411
|
+
(e = this.leadHeadNameGroup) == null || e.removeAll(), (t = this.leadHeadOffAndDelGroup) == null || t.removeAll(), this.leadModel.isSingleMode ? (this.addWaveDataCopy = [], this.waveDataCopy = [], this.createSingleWaveFrom(), (i = this.sceneIns) == null || i.add(this.singleWaveFromGroup)) : (this.singleWaveDataCopy = [], this.createAddWaveFrom(), this.createRowAndColWaveFrom(), (s = this.sceneIns) == null || s.add(this.rowAndColwaveFromGroup), (a = this.sceneIns) == null || a.add(this.addwaveFromGroup)), this.drawLeadHeadNameAndOffOrDel(), this.drawRuler(this.timersCopy), this.drawLoopArrow(this.drawLoopArrowStartPosIdx);
|
|
412
412
|
}
|
|
413
413
|
getRednerSinglePoints() {
|
|
414
414
|
let e = 0, t = 0;
|
|
415
415
|
const i = this.waveLists[this.singleModeConfig.defaultSelect] || [];
|
|
416
|
-
let s = this.slidingWindowInfo.startInd || 0,
|
|
417
|
-
const
|
|
416
|
+
let s = this.slidingWindowInfo.startInd || 0, a = this.slidingWindowInfo.endInd || 0;
|
|
417
|
+
const o = M(
|
|
418
418
|
this.waveConfigs[this.singleModeConfig.defaultSelect].speed,
|
|
419
419
|
this.gridConfig.cellMg,
|
|
420
420
|
this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate
|
|
421
|
-
), n =
|
|
421
|
+
), n = H(this.waveConfigs[this.singleModeConfig.defaultSelect].gain, this.gridConfig.cellMg), r = [], l = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
|
|
422
422
|
for (let d = 0; d < 1; d++) {
|
|
423
423
|
e = d * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0;
|
|
424
424
|
for (let h = 1; h <= l; h++)
|
|
425
|
-
t = h * this.splitBlockHeight, h > 1 && (t *= 0.8, s =
|
|
425
|
+
t = h * this.splitBlockHeight, h > 1 && (t *= 0.8, s = a, a = s + (this.slidingWindowInfo.points || 0)), h === 1 && (this.loopArrowY.rowAndCol = t), r.push({
|
|
426
426
|
pos: [e, t],
|
|
427
427
|
startInd: s,
|
|
428
|
-
endInd:
|
|
429
|
-
step:
|
|
428
|
+
endInd: a,
|
|
429
|
+
step: o,
|
|
430
430
|
sens: n,
|
|
431
|
-
data: i.slice(s,
|
|
431
|
+
data: i.slice(s, a).map((p, v) => this.waveConfigs[this.singleModeConfig.defaultSelect].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[this.singleModeConfig.defaultSelect].leadName) ? L(this.waveConfigs[this.singleModeConfig.defaultSelect].sensitivity, p, n / 2) : L(this.waveConfigs[this.singleModeConfig.defaultSelect].sensitivity, p, n)).map((p, v) => [v * (o || 0), -p])
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
return r;
|
|
@@ -438,16 +438,16 @@ let u = class extends q {
|
|
|
438
438
|
(n = this.singleWaveFromGroup) == null || n.removeAll();
|
|
439
439
|
let e = this.getRednerSinglePoints(), t = O(this.slidingWindowInfo.points || 0, this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0);
|
|
440
440
|
const i = t;
|
|
441
|
-
let s = 0,
|
|
441
|
+
let s = 0, a = 0, o = 0;
|
|
442
442
|
for (let d = 0; d < e.length && !(e[d].pos[1] > this.drawArea.height + this.bottomAreaHeight); d++)
|
|
443
|
-
this.isLeadDel(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx) || (s = parseInt(`${t / 1e3 / 60}`, 10),
|
|
443
|
+
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, (r = this.singleWaveFromGroup) == null || r.add(new R({
|
|
444
444
|
cursor: "",
|
|
445
445
|
name: this.singleModeConfig.defaultSelect + "_" + d,
|
|
446
446
|
shape: {
|
|
447
|
-
points: e[d].data.map(([h, p], v) => isNaN(p) ? (
|
|
448
|
-
e[d].data[
|
|
449
|
-
e[d].data[
|
|
450
|
-
]) : (
|
|
447
|
+
points: e[d].data.map(([h, p], v) => isNaN(p) ? (o === 0 && (o = v - 1, o = o < 0 ? 0 : o), [
|
|
448
|
+
e[d].data[o][0] + e[d].pos[0],
|
|
449
|
+
e[d].data[o][1] + e[d].pos[1]
|
|
450
|
+
]) : (o = 0, [
|
|
451
451
|
h + e[d].pos[0],
|
|
452
452
|
p + e[d].pos[1]
|
|
453
453
|
]))
|
|
@@ -467,7 +467,7 @@ let u = class extends q {
|
|
|
467
467
|
style: {
|
|
468
468
|
x: e[d].pos[0],
|
|
469
469
|
y: e[d].pos[1] - (e[d].sens || 0) / 2,
|
|
470
|
-
text: d === 0 ? "00:00 \u5FC3\u7387" : `${s}:${
|
|
470
|
+
text: d === 0 ? "00:00 \u5FC3\u7387" : `${s}:${a} \u5FC3\u7387`,
|
|
471
471
|
fontWeight: "bold",
|
|
472
472
|
fontSize: 14,
|
|
473
473
|
fill: "#FF0080",
|
|
@@ -487,12 +487,12 @@ let u = class extends q {
|
|
|
487
487
|
this.heartFight.mode && this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = this.heartBeatPosition[this.heartFight.showIdxPai][this.heartFight.defaultSelect] || null, this.drawHeardBeatLine());
|
|
488
488
|
let t = 0, i = 0;
|
|
489
489
|
if (this.leadModel.add) {
|
|
490
|
-
const C =
|
|
490
|
+
const C = H(this.waveConfigs[this.longLeadConfig.leadIdxs[0]].gain, this.gridConfig.cellMg);
|
|
491
491
|
i = this.loopArrowY.add - (C || 0) - this.splitBlockHeight / 3.5;
|
|
492
492
|
} else
|
|
493
493
|
i = 20;
|
|
494
|
-
let s = 0,
|
|
495
|
-
const
|
|
494
|
+
let s = 0, a = 0;
|
|
495
|
+
const o = {
|
|
496
496
|
fontSize: 12,
|
|
497
497
|
fill: "red",
|
|
498
498
|
fontFamily: this.fontFamily
|
|
@@ -509,7 +509,7 @@ let u = class extends q {
|
|
|
509
509
|
if (d = ((f == null ? void 0 : f.position) || 0) - e, !(e > ((f == null ? void 0 : f.position) || 0)) && !(!this.leadModel.isContinuous && !this.leadModel.add && d > (this.slidingWindowInfo.points || 0)) && !(this.leadModel.isSingleMode && d > (this.slidingWindowInfo.points || 0))) {
|
|
510
510
|
if (((f == null ? void 0 : f.position) || 0) - this.addSlidingWindowInfo.startInd > (this.addSlidingWindowInfo.points || 0))
|
|
511
511
|
break;
|
|
512
|
-
t = d * (l || 0) + this.leadHeadConfig.leadHedeWidth - 8.5,
|
|
512
|
+
t = d * (l || 0) + this.leadHeadConfig.leadHedeWidth - 8.5, a = 0, (v = this.arrowGroup) == null || v.add(new ae({
|
|
513
513
|
name: "arrow_box",
|
|
514
514
|
shape: {
|
|
515
515
|
points: [
|
|
@@ -545,30 +545,30 @@ let u = class extends q {
|
|
|
545
545
|
cursor: "",
|
|
546
546
|
style: S({
|
|
547
547
|
x: 4 + t - s * 1.4,
|
|
548
|
-
y:
|
|
548
|
+
y: a + i,
|
|
549
549
|
text: `${n || ""}`
|
|
550
|
-
},
|
|
551
|
-
})),
|
|
550
|
+
}, o)
|
|
551
|
+
})), a += 12), this.heartFight.interval && (s = ((b = this.AssistCtx) == null ? void 0 : b.measureText(`${(f == null ? void 0 : f.interval) || ""}`).width) || 0, (D = this.arrowGroup) == null || D.add(new W({
|
|
552
552
|
cursor: "",
|
|
553
553
|
style: S({
|
|
554
554
|
x: 4 + t - s * 1.5,
|
|
555
|
-
y:
|
|
555
|
+
y: a + i,
|
|
556
556
|
text: `${(f == null ? void 0 : f.interval) || ""}`
|
|
557
|
-
},
|
|
558
|
-
})),
|
|
557
|
+
}, o)
|
|
558
|
+
})), a += 12), this.heartFight.qrstCompany && (s = ((B = this.AssistCtx) == null ? void 0 : B.measureText(`${(f == null ? void 0 : f.qrstCompany) || ""}`).width) || 0, (P = this.arrowGroup) == null || P.add(new W({
|
|
559
559
|
cursor: "",
|
|
560
560
|
style: S({
|
|
561
561
|
x: 4 + t - s * 1.5,
|
|
562
|
-
y:
|
|
562
|
+
y: a + i,
|
|
563
563
|
text: `${(f == null ? void 0 : f.qrstCompany) || ""}`
|
|
564
|
-
},
|
|
565
|
-
})),
|
|
564
|
+
}, o)
|
|
565
|
+
})), a += 12), this.heartFight.telectricalaxis && (s = ((I = this.AssistCtx) == null ? void 0 : I.measureText(`${(f == null ? void 0 : f.telectricalaxis) || ""}`).width) || 0, (m = this.arrowGroup) == null || m.add(new W({
|
|
566
566
|
cursor: "",
|
|
567
567
|
style: S({
|
|
568
568
|
x: 4 + t - s * 1.5,
|
|
569
|
-
y:
|
|
569
|
+
y: a + i,
|
|
570
570
|
text: `${(f == null ? void 0 : f.telectricalaxis) || ""}`
|
|
571
|
-
},
|
|
571
|
+
}, o)
|
|
572
572
|
})));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
@@ -578,10 +578,10 @@ let u = class extends q {
|
|
|
578
578
|
this.$emit("notifyHeardBeat", oe.clone(e)), this.currentHeardBeat.heardBeat = e, this.currentHeardBeat.ele = t, this.drawHeardBeatLine();
|
|
579
579
|
}
|
|
580
580
|
drawHeardBeatLine(e = 0) {
|
|
581
|
-
var
|
|
581
|
+
var a, o, n, r, l, d, h, p, v, A, F, b, D, B, P;
|
|
582
582
|
if (!this.currentHeardBeat.heardBeat)
|
|
583
583
|
return;
|
|
584
|
-
(
|
|
584
|
+
(a = this.heardBeatLineGroup) == null || a.removeAll(), (o = this.sceneIns) == null || o.remove(this.heardBeatLineGroup);
|
|
585
585
|
let t = {}, i = 0, s;
|
|
586
586
|
if (this.leadModel.isSingleMode) {
|
|
587
587
|
let I = this.getRednerSinglePoints();
|
|
@@ -655,8 +655,8 @@ let u = class extends q {
|
|
|
655
655
|
stroke: "blue",
|
|
656
656
|
lineWidth: 1
|
|
657
657
|
},
|
|
658
|
-
oncontextmenu: (
|
|
659
|
-
this.onContextmenu(
|
|
658
|
+
oncontextmenu: (a) => {
|
|
659
|
+
this.onContextmenu(a, s);
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
662
|
}
|
|
@@ -666,32 +666,33 @@ let u = class extends q {
|
|
|
666
666
|
}
|
|
667
667
|
getAddRednerPoints() {
|
|
668
668
|
const e = [];
|
|
669
|
-
let t = this.leadHeadConfig.leadHedeWidth, i = 0, s = 0,
|
|
669
|
+
let t = this.leadHeadConfig.leadHedeWidth, i = 0, s = 0, a = [], o = 0, n = 0;
|
|
670
670
|
for (let r = 0; r < this.leadModel.add; r++)
|
|
671
|
-
s = this.longLeadConfig.leadIdxs[r], this.waveConfigs[s] && (t = this.waveConfigs[s].addPosX || t,
|
|
671
|
+
s = this.longLeadConfig.leadIdxs[r], this.waveConfigs[s] && (t = this.waveConfigs[s].addPosX || t, o = M(this.waveConfigs[s].speed, this.gridConfig.cellMg, this.waveConfigs[s].sampleRate), n = H(this.waveConfigs[s].gain, this.gridConfig.cellMg), i = this.waveConfigs[s].addPosY || (r + this.leadModel.line + 1) * this.splitBlockHeight, a = this.waveLists[s] || [], r === 0 && (this.loopArrowY.add = i), e.push({
|
|
672
672
|
pos: [t, i],
|
|
673
673
|
startInd: this.addSlidingWindowInfo.startInd || 0,
|
|
674
674
|
endInd: this.addSlidingWindowInfo.endInd || 0,
|
|
675
|
-
data:
|
|
675
|
+
data: a.slice(this.addSlidingWindowInfo.startInd, this.addSlidingWindowInfo.endInd).map((l, d) => this.waveConfigs[s].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[s].leadName) ? L(this.waveConfigs[s].sensitivity, l, n / 2) : L(this.waveConfigs[s].sensitivity, l, n)).map((l, d) => [d * (o || 0), -l]),
|
|
676
676
|
sens: n,
|
|
677
|
-
step:
|
|
677
|
+
step: o
|
|
678
678
|
}));
|
|
679
679
|
return e;
|
|
680
680
|
}
|
|
681
681
|
createAddWaveFrom() {
|
|
682
|
-
var i;
|
|
682
|
+
var i, s;
|
|
683
|
+
(i = this.addwaveFromGroup) == null || i.removeAll();
|
|
683
684
|
let e = this.getAddRednerPoints(), t = 0;
|
|
684
|
-
for (let
|
|
685
|
-
this.isLeadDel(this.longLeadConfig.leadIdxs[
|
|
685
|
+
for (let a = 0; a < e.length; a++)
|
|
686
|
+
this.isLeadDel(this.longLeadConfig.leadIdxs[a]) || ((s = this.addwaveFromGroup) == null || s.add(new R({
|
|
686
687
|
cursor: "",
|
|
687
|
-
name: this.longLeadConfig.leadIdxs[
|
|
688
|
+
name: this.longLeadConfig.leadIdxs[a] + "_" + a,
|
|
688
689
|
shape: {
|
|
689
|
-
points: e[
|
|
690
|
-
e[
|
|
691
|
-
e[
|
|
690
|
+
points: e[a].data.map(([o, n], r) => isNaN(n) ? (t === 0 && (t = r - 1, t = t < 0 ? 0 : t), [
|
|
691
|
+
e[a].data[t][0] + e[a].pos[0],
|
|
692
|
+
e[a].data[t][1] + e[a].pos[1]
|
|
692
693
|
]) : (t = 0, [
|
|
693
|
-
o + e[
|
|
694
|
-
|
|
694
|
+
o + e[a].pos[0],
|
|
695
|
+
n + e[a].pos[1]
|
|
695
696
|
]))
|
|
696
697
|
},
|
|
697
698
|
style: {
|
|
@@ -704,41 +705,41 @@ let u = class extends q {
|
|
|
704
705
|
oncontextmenu: (o) => {
|
|
705
706
|
this.onContextmenu(o, "add");
|
|
706
707
|
}
|
|
707
|
-
})), this.createLeadName(this.longLeadConfig.leadNames[
|
|
708
|
+
})), this.createLeadName(this.longLeadConfig.leadNames[a], e[a].pos[0], e[a].pos[1] - 15, !0), this.createLeadOffAndDel(this.longLeadConfig.leadIdxs[a], e[a].pos[0] - 5, e[a].pos[1] - (e[a].sens || 0) / 2 - 15));
|
|
708
709
|
this.addWaveDataCopy = e, e = null;
|
|
709
710
|
}
|
|
710
711
|
getRednerPoints() {
|
|
711
|
-
let e = 0, t = 0, i = 0, s = [],
|
|
712
|
+
let e = 0, t = 0, i = 0, s = [], a = 0, o = 0, n = this.slidingWindowInfo.startInd || 0, r = this.slidingWindowInfo.endInd || 0;
|
|
712
713
|
const l = [];
|
|
713
714
|
for (let d = 0; d < this.leadModel.column; d++) {
|
|
714
715
|
e = d * this.splitPoint + this.leadHeadConfig.leadHedeWidth, t = 0, this.leadModel.isContinuous && d > 0 && (n = r, r = n + (this.slidingWindowInfo.points || 0));
|
|
715
716
|
for (let h = 1; h <= this.leadModel.line && (t = h * this.splitBlockHeight, !(i > (this.waveLists || []).length - 1)); h++)
|
|
716
|
-
e = this.waveConfigs[i].posX || e, t = this.waveConfigs[i].posY || t,
|
|
717
|
+
e = this.waveConfigs[i].posX || e, t = this.waveConfigs[i].posY || t, a = M(this.waveConfigs[i].speed, this.gridConfig.cellMg, this.waveConfigs[i].sampleRate), o = H(this.waveConfigs[i].gain, this.gridConfig.cellMg), s = this.waveLists[i] || [], this.waveConfigs[i] && (h === 1 && (this.loopArrowY.rowAndCol = t), l.push({
|
|
717
718
|
pos: [e, t],
|
|
718
719
|
startInd: n,
|
|
719
720
|
endInd: r,
|
|
720
|
-
sens:
|
|
721
|
-
step:
|
|
722
|
-
data: s.slice(n, r).map((p, v) => this.waveConfigs[i].
|
|
721
|
+
sens: o,
|
|
722
|
+
step: a,
|
|
723
|
+
data: s.slice(n, r).map((p, v) => this.waveConfigs[i].gainName === "\u80F8\u5BFC\u51CF\u534A" && /^V\w+/.test(this.waveConfigs[i].leadName) ? L(this.waveConfigs[i].sensitivity, p, o / 2) : L(this.waveConfigs[i].sensitivity, p, o)).map((p, v) => [v * (a || 0), -p])
|
|
723
724
|
}), i++);
|
|
724
725
|
}
|
|
725
726
|
return l;
|
|
726
727
|
}
|
|
727
728
|
createRowAndColWaveFrom() {
|
|
728
|
-
var s,
|
|
729
|
+
var s, a;
|
|
729
730
|
(s = this.rowAndColwaveFromGroup) == null || s.removeAll();
|
|
730
731
|
let e = this.getRednerPoints(), t = 0, i = 0;
|
|
731
|
-
for (let
|
|
732
|
-
t = this.waveConfigs[
|
|
732
|
+
for (let o = 0; o < e.length; o++)
|
|
733
|
+
t = this.waveConfigs[o].leadIdx || 0, this.isLeadDel(t) || (a = this.rowAndColwaveFromGroup) == null || a.add(new R({
|
|
733
734
|
cursor: "",
|
|
734
|
-
name:
|
|
735
|
+
name: o + "_" + o,
|
|
735
736
|
shape: {
|
|
736
|
-
points: e[
|
|
737
|
-
e[
|
|
738
|
-
e[
|
|
737
|
+
points: e[o].data.map(([n, r], l) => isNaN(r) ? (i === 0 && (i = l - 1, i = i < 0 ? 0 : i), [
|
|
738
|
+
e[o].data[i][0] + e[o].pos[0],
|
|
739
|
+
e[o].data[i][1] + e[o].pos[1]
|
|
739
740
|
]) : (i = 0, [
|
|
740
|
-
n + e[
|
|
741
|
-
r + e[
|
|
741
|
+
n + e[o].pos[0],
|
|
742
|
+
r + e[o].pos[1]
|
|
742
743
|
]))
|
|
743
744
|
},
|
|
744
745
|
style: {
|
|
@@ -751,15 +752,15 @@ let u = class extends q {
|
|
|
751
752
|
oncontextmenu: (n) => {
|
|
752
753
|
this.onContextmenu(n, "rowAndCol");
|
|
753
754
|
}
|
|
754
|
-
})),
|
|
755
|
+
})), o < this.leadModel.line ? (this.createLeadName(t, e[o].pos[0], e[o].pos[1] - 15), this.createLeadOffAndDel(t, e[o].pos[0] - 5, e[o].pos[1] - (e[o].sens || 0) / 2 - 15)) : (this.createLeadName(t, e[o].pos[0] + 5, e[o].pos[1] - (e[o].sens || 0) / 2), this.createLeadOffAndDel(t, e[o].pos[0] - 5, e[o].pos[1] - (e[o].sens || 0) / 2 + 9));
|
|
755
756
|
this.waveDataCopy = e, e = null;
|
|
756
757
|
}
|
|
757
758
|
createLeadName(e, t, i, s = !1) {
|
|
758
|
-
var
|
|
759
|
-
let
|
|
760
|
-
this.leadHeadConfig.isShowLeadCalibration === !1 && (this.leadModel.isSingleMode ?
|
|
759
|
+
var o;
|
|
760
|
+
let a = t;
|
|
761
|
+
this.leadHeadConfig.isShowLeadCalibration === !1 && (this.leadModel.isSingleMode ? a = t - this.leadHeadConfig.leadHedeWidth + 12 : a = t - this.leadHeadConfig.leadHedeWidth + 5), (o = this.leadHeadNameGroup) == null || o.add(new W({
|
|
761
762
|
style: {
|
|
762
|
-
x:
|
|
763
|
+
x: a,
|
|
763
764
|
y: i,
|
|
764
765
|
text: this.leadNames[e],
|
|
765
766
|
fontSize: this.leadConfig.fontSize,
|
|
@@ -804,8 +805,8 @@ let u = class extends q {
|
|
|
804
805
|
onContextmenu(e, t) {
|
|
805
806
|
e.event.preventDefault(), e.event.stopPropagation(), console.log("onContextmenu", e);
|
|
806
807
|
const i = e.target.name.split("_"), s = +i[1];
|
|
807
|
-
let
|
|
808
|
-
t === "single" ? (
|
|
808
|
+
let a = 0, o = 0, n = 0, r = 0, l = 0;
|
|
809
|
+
t === "single" ? (a = e.offsetX - this.singleWaveDataCopy[s].pos[0], o = this.singleWaveDataCopy[s].startInd, n = x(a, this.singleWaveDataCopy[s].step || 1), r = 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 = x(a, this.waveDataCopy[s].step || 1), r = 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 = x(a, this.addWaveDataCopy[s].step || 1), r = this.addWaveDataCopy[s].sens, l = this.addWaveDataCopy[s].step), n += o, this.$emit("notifyOnContextmenu", {
|
|
809
810
|
sens: r,
|
|
810
811
|
step: l,
|
|
811
812
|
activeLeadIdx: +i[0],
|
|
@@ -819,11 +820,11 @@ let u = class extends q {
|
|
|
819
820
|
onDbClickWaveFrom(e, t) {
|
|
820
821
|
console.log("onDbClickWaveFrom", e);
|
|
821
822
|
const i = Date.now(), s = () => {
|
|
822
|
-
const
|
|
823
|
-
this.activeLeadIdx = +
|
|
824
|
-
const
|
|
823
|
+
const a = e.target.name.split("_");
|
|
824
|
+
this.activeLeadIdx = +a[0];
|
|
825
|
+
const o = +a[1];
|
|
825
826
|
let n = 0, r = 0, l = 0, d = 0, h = 0;
|
|
826
|
-
t === "single" ? (n = e.offsetX - this.singleWaveDataCopy[
|
|
827
|
+
t === "single" ? (n = e.offsetX - this.singleWaveDataCopy[o].pos[0], r = this.singleWaveDataCopy[o].startInd, l = x(n, this.singleWaveDataCopy[o].step || 1), d = this.singleWaveDataCopy[o].sens, h = this.singleWaveDataCopy[o].step) : t === "rowAndCol" ? (n = e.offsetX - this.waveDataCopy[o].pos[0], r = this.waveDataCopy[o].startInd || 0, l = x(n, this.waveDataCopy[o].step || 1), d = this.waveDataCopy[o].sens, h = this.waveDataCopy[o].step) : t === "add" && (n = e.offsetX - this.addWaveDataCopy[o].pos[0], r = this.addWaveDataCopy[o].startInd || 0, l = x(n, this.addWaveDataCopy[o].step || 1), d = this.addWaveDataCopy[o].sens, h = this.addWaveDataCopy[o].step), l += r, this.$emit("notifyActiveEnlargr", {
|
|
827
828
|
sens: d,
|
|
828
829
|
step: h,
|
|
829
830
|
activeLeadIdx: this.activeLeadIdx,
|
|
@@ -846,11 +847,11 @@ let u = class extends q {
|
|
|
846
847
|
});
|
|
847
848
|
}
|
|
848
849
|
scrollWaveFrom(e) {
|
|
849
|
-
var s,
|
|
850
|
+
var s, a;
|
|
850
851
|
this.slidingWindowInfo.startInd = e, this.slidingWindowInfo.endInd = e + (this.slidingWindowInfo.points || 0), this.addSlidingWindowInfo.startInd = e, this.addSlidingWindowInfo.endInd = e + (this.addSlidingWindowInfo.points || 0);
|
|
851
852
|
let t = this.getRednerPoints(), i = this.getAddRednerPoints();
|
|
852
|
-
this.waveDataCopy = t, this.addWaveDataCopy = i, (s = this.rowAndColwaveFromGroup) == null || s.eachChild((
|
|
853
|
-
n = n || 0, !(!t[n] || !t[n].data) &&
|
|
853
|
+
this.waveDataCopy = t, this.addWaveDataCopy = i, (s = this.rowAndColwaveFromGroup) == null || s.eachChild((o, n) => {
|
|
854
|
+
n = n || 0, !(!t[n] || !t[n].data) && o.attr({
|
|
854
855
|
shape: {
|
|
855
856
|
points: t[n].data.map(([r, l]) => [
|
|
856
857
|
r + t[n].pos[0],
|
|
@@ -858,8 +859,8 @@ let u = class extends q {
|
|
|
858
859
|
])
|
|
859
860
|
}
|
|
860
861
|
});
|
|
861
|
-
}), (
|
|
862
|
-
n = n || 0, !(!i[n] || !i[n].data) &&
|
|
862
|
+
}), (a = this.addwaveFromGroup) == null || a.eachChild((o, n) => {
|
|
863
|
+
n = n || 0, !(!i[n] || !i[n].data) && o.attr({
|
|
863
864
|
shape: {
|
|
864
865
|
points: i[n].data.map(([r, l]) => [
|
|
865
866
|
r + i[n].pos[0],
|