costy-plus 1.0.43-0 → 1.0.44-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_vue_type_template_lang.js +22 -18
- package/dist/es/src/CommonWaveForm/method.d.ts +2 -0
- package/dist/es/src/CommonWaveForm/method.js +23 -18
- package/dist/es/src/CommonWaveForm/style/index.css +2 -2
- package/dist/es/src/EnlargeWave/index.vue_vue_type_script_lang.js +14 -12
- package/dist/es/src/EnlargeWave/index.vue_vue_type_template_lang.js +5 -3
- package/dist/es/src/EnlargeWave/medthod.d.ts +2 -0
- package/dist/es/src/EnlargeWave/medthod.js +84 -79
- package/dist/es/src/EnlargeWave/style/index.css +20 -20
- package/dist/es/src/MagnifierWave/index.vue_vue_type_script_lang.js +13 -11
- package/dist/es/src/MagnifierWave/index.vue_vue_type_template_lang.js +10 -8
- package/dist/es/src/MagnifierWave/medthod.d.ts +2 -0
- package/dist/es/src/MagnifierWave/medthod.js +86 -81
- package/dist/es/src/MagnifierWave/style/index.css +4 -4
- package/dist/es/src/MeasuringRuler/index.vue.d.ts +2 -0
- package/dist/es/src/MeasuringRuler/index.vue_vue_type_script_lang.js +26 -19
- package/dist/es/src/MeasuringRuler/index.vue_vue_type_template_lang.js +3 -3
- package/dist/es/src/ParallelRuler/index.vue.d.ts +2 -0
- package/dist/es/src/ParallelRuler/index.vue_vue_type_script_lang.js +34 -27
- package/dist/es/src/ParallelRuler/index.vue_vue_type_template_lang.js +3 -3
- package/dist/lib/src/CommonWaveForm/index.vue_vue_type_template_lang.js +1 -1
- package/dist/lib/src/CommonWaveForm/method.d.ts +2 -0
- package/dist/lib/src/CommonWaveForm/method.js +1 -1
- package/dist/lib/src/CommonWaveForm/style/index.css +2 -2
- package/dist/lib/src/EnlargeWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/EnlargeWave/index.vue_vue_type_template_lang.js +1 -1
- package/dist/lib/src/EnlargeWave/medthod.d.ts +2 -0
- package/dist/lib/src/EnlargeWave/medthod.js +1 -1
- package/dist/lib/src/EnlargeWave/style/index.css +20 -20
- package/dist/lib/src/MagnifierWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/MagnifierWave/index.vue_vue_type_template_lang.js +1 -1
- package/dist/lib/src/MagnifierWave/medthod.d.ts +2 -0
- package/dist/lib/src/MagnifierWave/medthod.js +1 -1
- package/dist/lib/src/MagnifierWave/style/index.css +4 -4
- package/dist/lib/src/MeasuringRuler/index.vue.d.ts +2 -0
- package/dist/lib/src/MeasuringRuler/index.vue_vue_type_script_lang.js +2 -2
- package/dist/lib/src/MeasuringRuler/index.vue_vue_type_template_lang.js +1 -1
- package/dist/lib/src/ParallelRuler/index.vue.d.ts +2 -0
- package/dist/lib/src/ParallelRuler/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/ParallelRuler/index.vue_vue_type_template_lang.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var l = function() {
|
|
2
|
-
var e = this,
|
|
3
|
-
return
|
|
2
|
+
var e = this, a = e.$createElement, i = e._self._c || a;
|
|
3
|
+
return i("div", {
|
|
4
4
|
style: {
|
|
5
5
|
width: `${e.width}px`,
|
|
6
6
|
height: `${e.height}px`
|
|
@@ -8,24 +8,25 @@ var l = function() {
|
|
|
8
8
|
attrs: {
|
|
9
9
|
id: "common-wave-form-main"
|
|
10
10
|
}
|
|
11
|
-
}, [
|
|
11
|
+
}, [i("MXBackgroundGrid", {
|
|
12
12
|
attrs: {
|
|
13
13
|
width: e.canvasContainer.width,
|
|
14
14
|
height: e.canvasContainer.height,
|
|
15
15
|
"grid-config": e.gridConfig,
|
|
16
16
|
model: e.gridConfig.model,
|
|
17
|
-
"layer-id": "MXGrid"
|
|
17
|
+
"layer-id": e.prefixId + "MXGrid"
|
|
18
18
|
}
|
|
19
|
-
}), e.measurRulerConfig.isShow ?
|
|
19
|
+
}), e.measurRulerConfig.isShow ? i("MXMeasuringRuler", e._g({
|
|
20
20
|
staticClass: "measuring-ruler",
|
|
21
21
|
attrs: {
|
|
22
22
|
width: e.canvasContainer.width,
|
|
23
23
|
height: e.canvasContainer.height,
|
|
24
24
|
"cell-mg": e.gridConfig.cellMg,
|
|
25
25
|
"speed-value": e.measurRulerConfig.speed || 0,
|
|
26
|
-
sens: e.measurRulerConfig.sens || 0
|
|
26
|
+
sens: e.measurRulerConfig.sens || 0,
|
|
27
|
+
"prefix-id": e.prefixId
|
|
27
28
|
}
|
|
28
|
-
}, e.$listeners)) : e._e(), e.paralleRulerConfig.isShow ?
|
|
29
|
+
}, e.$listeners)) : e._e(), e.paralleRulerConfig.isShow ? i("MXParallelRuler", e._g({
|
|
29
30
|
staticClass: "parallel-ruler",
|
|
30
31
|
attrs: {
|
|
31
32
|
width: e.canvasContainer.width,
|
|
@@ -33,11 +34,13 @@ var l = function() {
|
|
|
33
34
|
"cell-mg": e.gridConfig.cellMg,
|
|
34
35
|
"speed-value": e.paralleRulerConfig.speed || 0,
|
|
35
36
|
sens: e.paralleRulerConfig.sens || 0,
|
|
36
|
-
"heart-rate": e.paralleRulerConfig.heartRate
|
|
37
|
+
"heart-rate": e.paralleRulerConfig.heartRate,
|
|
38
|
+
"prefix-id": e.prefixId
|
|
37
39
|
}
|
|
38
|
-
}, e.$listeners)) : e._e(), e.magnifierRulerConfig.isShow ?
|
|
40
|
+
}, e.$listeners)) : e._e(), e.magnifierRulerConfig.isShow ? i("MXMagnifierWave", {
|
|
39
41
|
staticClass: "magnifier-wave",
|
|
40
42
|
attrs: {
|
|
43
|
+
"prefix-id": e.prefixId,
|
|
41
44
|
width: e.canvasContainer.width,
|
|
42
45
|
height: e.canvasContainer.height,
|
|
43
46
|
"grid-config": e.gridConfig,
|
|
@@ -54,37 +57,38 @@ var l = function() {
|
|
|
54
57
|
"normal-lead-names": e.leadNameList,
|
|
55
58
|
"lead-names": e.leadNames
|
|
56
59
|
}
|
|
57
|
-
}) : e._e(),
|
|
60
|
+
}) : e._e(), i("div", {
|
|
61
|
+
staticClass: "wave-from-box_container",
|
|
58
62
|
attrs: {
|
|
59
|
-
id: "wave-from-box"
|
|
63
|
+
id: e.prefixId + "wave-from-box"
|
|
60
64
|
}
|
|
61
|
-
}),
|
|
65
|
+
}), i("div", {
|
|
62
66
|
staticClass: "scroll-box",
|
|
63
67
|
style: {
|
|
64
68
|
width: `${e.width}px`,
|
|
65
69
|
height: `${e.height}px`
|
|
66
70
|
}
|
|
67
|
-
}, [e.scrollConfig.isNativeScroll ?
|
|
68
|
-
ref: "nativeScroll",
|
|
71
|
+
}, [e.scrollConfig.isNativeScroll ? i("div", {
|
|
72
|
+
ref: e.prefixId + "nativeScroll",
|
|
69
73
|
staticClass: "native-scroll",
|
|
70
74
|
on: {
|
|
71
75
|
scroll: e.nativeScrollFunc
|
|
72
76
|
}
|
|
73
|
-
}, [
|
|
77
|
+
}, [i("div", {
|
|
74
78
|
staticClass: "scroll-empty",
|
|
75
79
|
style: {
|
|
76
80
|
width: `${e.vuescrollWH.width}px`,
|
|
77
81
|
height: `${e.vuescrollWH.height}px`
|
|
78
82
|
}
|
|
79
|
-
})]) :
|
|
80
|
-
ref: "vueScroll",
|
|
83
|
+
})]) : i("vueScroll", {
|
|
84
|
+
ref: e.prefixId + "vueScroll",
|
|
81
85
|
attrs: {
|
|
82
86
|
ops: e.scrollConfig
|
|
83
87
|
},
|
|
84
88
|
on: {
|
|
85
89
|
"handle-scroll": e.handleScroll
|
|
86
90
|
}
|
|
87
|
-
}, [
|
|
91
|
+
}, [i("div", {
|
|
88
92
|
staticClass: "scroll-empty",
|
|
89
93
|
style: {
|
|
90
94
|
width: `${e.vuescrollWH.width}px`,
|
|
@@ -47,6 +47,8 @@ export default class Methods extends Vue {
|
|
|
47
47
|
protected dataTotalTimes: number;
|
|
48
48
|
/** 当前总长度数据 */
|
|
49
49
|
protected dataTotalLength: number;
|
|
50
|
+
/** 前缀 id */
|
|
51
|
+
protected prefixId: string;
|
|
50
52
|
protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
|
|
51
53
|
protected sceneIns: Readonly<ZRenderType | null>;
|
|
52
54
|
protected layerBgGroup: Readonly<Group | null>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var X = Object.defineProperty, T = Object.defineProperties;
|
|
2
2
|
var V = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var z = Object.getOwnPropertySymbols;
|
|
4
4
|
var Y = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var j = (e, t, i) => t in e ?
|
|
5
|
+
var j = (e, t, i) => t in e ? X(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, I = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
7
|
Y.call(t, i) && j(e, i, t[i]);
|
|
8
8
|
if (z)
|
|
@@ -15,9 +15,9 @@ 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 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/Prop.js";
|
|
17
17
|
import { flattenDeep as Q, max as K, min as U } from "lodash";
|
|
18
|
-
import { throttling as
|
|
18
|
+
import { throttling as $, getStepForSpeed as W, getPrintLengthToPx as Z, getSens as H, getDataLenTimes as A, getPointIdxForPx as M, getActualY as L } from "@costy-plus/utils";
|
|
19
19
|
import * as J from "zrender";
|
|
20
|
-
import { Group as v, Polyline as
|
|
20
|
+
import { Group as v, Polyline as x, Line as G, Text as y, Polygon as ee, util as te } from "zrender";
|
|
21
21
|
var ie = Object.defineProperty, se = Object.getOwnPropertyDescriptor, u = (e, t, i, s) => {
|
|
22
22
|
for (var a = s > 1 ? void 0 : s ? se(t, i) : t, o = e.length - 1, n; o >= 0; o--)
|
|
23
23
|
(n = e[o]) && (a = (s ? n(t, i, a) : n(a)) || a);
|
|
@@ -163,21 +163,21 @@ let g = class extends E {
|
|
|
163
163
|
initWaveFormPeer() {
|
|
164
164
|
var i;
|
|
165
165
|
(i = this.sceneIns) == null || i.dispose(), this.AssistCtx = null;
|
|
166
|
-
const e = document.getElementById(
|
|
166
|
+
const e = document.getElementById(`${this.prefixId}wave-from-box`);
|
|
167
167
|
this.sceneIns = J.init(e, {
|
|
168
168
|
width: this.canvasContainer.width,
|
|
169
169
|
height: this.canvasContainer.height,
|
|
170
170
|
devicePixelRatio: 2
|
|
171
171
|
});
|
|
172
|
-
const t = document.getElementById(
|
|
172
|
+
const t = document.getElementById(`${this.prefixId}MXGrid`);
|
|
173
173
|
this.AssistCtx = t.getContext("2d"), this.sceneInsEventOff(), this.sceneIns.on("mousemove", this.sceneInsMousemove), this.sceneIns.on("mousedown", this.sceneInsMouseDown), this.sceneIns.on("mouseup", this.sceneInsMouseUp);
|
|
174
174
|
}
|
|
175
175
|
sceneInsMousemove(e) {
|
|
176
176
|
var t;
|
|
177
|
-
this.sceneIsMouseDown && (this.scrollConfig.isNativeScroll ? (t = this.$refs.nativeScroll) == null || t.scrollBy({
|
|
177
|
+
this.sceneIsMouseDown && (this.scrollConfig.isNativeScroll ? (t = this.$refs[`${this.prefixId}nativeScroll`]) == null || t.scrollBy({
|
|
178
178
|
left: e.offsetX - this.sceneIsMouseDownX,
|
|
179
179
|
top: 0
|
|
180
|
-
}) : this.$refs.vueScroll.scrollBy({
|
|
180
|
+
}) : this.$refs[`${this.prefixId}vueScroll`].scrollBy({
|
|
181
181
|
dx: e.offsetX - this.sceneIsMouseDownX
|
|
182
182
|
}));
|
|
183
183
|
}
|
|
@@ -225,7 +225,7 @@ let g = class extends E {
|
|
|
225
225
|
}
|
|
226
226
|
createLeadHead(e, t, i, s) {
|
|
227
227
|
const a = this.leadHeadConfig.leadHedeWidth / 4;
|
|
228
|
-
return i = s ? i / 2 : i, new
|
|
228
|
+
return i = s ? i / 2 : i, new x({
|
|
229
229
|
cursor: "",
|
|
230
230
|
shape: {
|
|
231
231
|
points: [
|
|
@@ -415,7 +415,7 @@ let g = class extends E {
|
|
|
415
415
|
(a = this.singleWaveFromGroup) == null || a.removeAll();
|
|
416
416
|
let e = this.getRednerSinglePoints(), t = A(this.slidingWindowInfo.points || 0, this.waveConfigs[this.singleModeConfig.defaultSelect].sampleRate || 0), i = 0, s = 0;
|
|
417
417
|
for (let l = 0; l < e.length && !(e[l].pos[1] > this.drawArea.height + this.bottomAreaHeight); l++)
|
|
418
|
-
this.isLeadDel(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx) || (i = parseInt(`${t / 1e3 / 60}`, 10), s = parseInt(`${t / 1e3 % 60}`, 10), i = s === 60 ? i += 1 : i, i = i === 0 ? "00" : i < 10 ? `0${i}` : i, s = s === 0 || s === 60 ? "00" : s < 10 ? `0${s}` : s, (o = this.singleWaveFromGroup) == null || o.add(new
|
|
418
|
+
this.isLeadDel(this.waveConfigs[this.singleModeConfig.defaultSelect].leadIdx) || (i = parseInt(`${t / 1e3 / 60}`, 10), s = parseInt(`${t / 1e3 % 60}`, 10), i = s === 60 ? i += 1 : i, i = i === 0 ? "00" : i < 10 ? `0${i}` : i, s = s === 0 || s === 60 ? "00" : s < 10 ? `0${s}` : s, (o = this.singleWaveFromGroup) == null || o.add(new x({
|
|
419
419
|
cursor: "",
|
|
420
420
|
name: this.singleModeConfig.defaultSelect + "_" + l,
|
|
421
421
|
shape: {
|
|
@@ -493,15 +493,15 @@ let g = class extends E {
|
|
|
493
493
|
style: {
|
|
494
494
|
fill: ((h = (f = this.currentHeardBeat) == null ? void 0 : f.heardBeat) == null ? void 0 : h.index) === (p == null ? void 0 : p.index) ? "blue" : "#ccc"
|
|
495
495
|
},
|
|
496
|
-
onclick: (
|
|
496
|
+
onclick: (b) => {
|
|
497
497
|
var k;
|
|
498
|
-
!this.heartFight.mode || (
|
|
498
|
+
!this.heartFight.mode || (b.target.attr({
|
|
499
499
|
style: { fill: "blue" }
|
|
500
500
|
}), (k = this.arrowGroup) == null || k.children().filter((S) => S.name === "arrow_box").forEach((S) => {
|
|
501
|
-
S.id !==
|
|
501
|
+
S.id !== b.target.id && S.attr({
|
|
502
502
|
style: { fill: "#ccc" }
|
|
503
503
|
});
|
|
504
|
-
}), this.arrowLoopClick(p,
|
|
504
|
+
}), this.arrowLoopClick(p, b.target));
|
|
505
505
|
}
|
|
506
506
|
})), this.heartFight.heartrate && (s = ((r = this.AssistCtx) == null ? void 0 : r.measureText(`${(p == null ? void 0 : p.heartrate) || ""}`).width) || 0, (C = this.arrowGroup) == null || C.add(new y({
|
|
507
507
|
cursor: "",
|
|
@@ -608,7 +608,7 @@ let g = class extends E {
|
|
|
608
608
|
var t;
|
|
609
609
|
let e = this.getAddRednerPoints();
|
|
610
610
|
for (let i = 0; i < e.length; i++)
|
|
611
|
-
this.isLeadDel(this.longLeadConfig.leadIdxs[i]) || ((t = this.addwaveFromGroup) == null || t.add(new
|
|
611
|
+
this.isLeadDel(this.longLeadConfig.leadIdxs[i]) || ((t = this.addwaveFromGroup) == null || t.add(new x({
|
|
612
612
|
cursor: "",
|
|
613
613
|
name: this.longLeadConfig.leadIdxs[i] + "_" + i,
|
|
614
614
|
shape: {
|
|
@@ -649,7 +649,7 @@ let g = class extends E {
|
|
|
649
649
|
console.time("createRowAndColWaveFrom"), (i = this.rowAndColwaveFromGroup) == null || i.removeAll();
|
|
650
650
|
let e = this.getRednerPoints(), t = 0;
|
|
651
651
|
for (let a = 0; a < e.length; a++)
|
|
652
|
-
t = this.waveConfigs[a].leadIdx || 0, this.isLeadDel(t) || (s = this.rowAndColwaveFromGroup) == null || s.add(new
|
|
652
|
+
t = this.waveConfigs[a].leadIdx || 0, this.isLeadDel(t) || (s = this.rowAndColwaveFromGroup) == null || s.add(new x({
|
|
653
653
|
cursor: "",
|
|
654
654
|
name: a + "_" + a,
|
|
655
655
|
shape: {
|
|
@@ -932,10 +932,15 @@ u([
|
|
|
932
932
|
})
|
|
933
933
|
], g.prototype, "dataTotalLength", 2);
|
|
934
934
|
u([
|
|
935
|
-
|
|
935
|
+
c({
|
|
936
|
+
default: () => ""
|
|
937
|
+
})
|
|
938
|
+
], g.prototype, "prefixId", 2);
|
|
939
|
+
u([
|
|
940
|
+
$(200)
|
|
936
941
|
], g.prototype, "nativeScrollFunc", 1);
|
|
937
942
|
u([
|
|
938
|
-
|
|
943
|
+
$(200)
|
|
939
944
|
], g.prototype, "handleScroll", 1);
|
|
940
945
|
g = u([
|
|
941
946
|
q({
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
border: 1px solid #564648;
|
|
9
9
|
position: relative;
|
|
10
10
|
}
|
|
11
|
-
#common-wave-form-main
|
|
11
|
+
#common-wave-form-main .wave-from-box_container,
|
|
12
12
|
#common-wave-form-main .scroll-box {
|
|
13
13
|
position: absolute;
|
|
14
14
|
left: 0;
|
|
15
15
|
top: 0;
|
|
16
16
|
}
|
|
17
|
-
#common-wave-form-main
|
|
17
|
+
#common-wave-form-main .wave-from-box_container {
|
|
18
18
|
z-index: 1;
|
|
19
19
|
}
|
|
20
20
|
#common-wave-form-main .scroll-box {
|
|
@@ -7,16 +7,16 @@ import "./style/index.css";
|
|
|
7
7
|
import "vue";
|
|
8
8
|
import d, { mixins as l } 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
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
|
|
10
|
+
import { Button as a, Checkbox as m, Descriptions as c, DescriptionsItem as h } from "element-ui";
|
|
11
11
|
import v from "../BackgroundGrid/index2.js";
|
|
12
|
-
import { init as
|
|
13
|
-
import
|
|
14
|
-
var u = Object.defineProperty,
|
|
15
|
-
for (var e = r > 1 ? void 0 : r ?
|
|
16
|
-
(
|
|
12
|
+
import { init as f } from "zrender";
|
|
13
|
+
import g from "./medthod.js";
|
|
14
|
+
var u = Object.defineProperty, x = Object.getOwnPropertyDescriptor, w = (i, t, n, r) => {
|
|
15
|
+
for (var e = r > 1 ? void 0 : r ? x(t, n) : t, o = i.length - 1, s; o >= 0; o--)
|
|
16
|
+
(s = i[o]) && (e = (r ? s(t, n, e) : s(e)) || e);
|
|
17
17
|
return r && e && u(t, n, e), e;
|
|
18
18
|
};
|
|
19
|
-
let p = class extends l(
|
|
19
|
+
let p = class extends l(g) {
|
|
20
20
|
mounted() {
|
|
21
21
|
this.init();
|
|
22
22
|
}
|
|
@@ -24,14 +24,16 @@ let p = class extends l(f) {
|
|
|
24
24
|
this.initWaveFormPeer(), this.combinationDrawing();
|
|
25
25
|
}
|
|
26
26
|
initWaveFormPeer() {
|
|
27
|
-
const i = document.getElementById(
|
|
28
|
-
|
|
27
|
+
const i = document.getElementById(
|
|
28
|
+
`${this.prefixId}enlarge-wave-from-box`
|
|
29
|
+
);
|
|
30
|
+
this.sceneIns = f(i, {
|
|
29
31
|
width: this.containerWH.width,
|
|
30
32
|
height: this.containerWH.height,
|
|
31
33
|
devicePixelRatio: 2
|
|
32
34
|
});
|
|
33
35
|
const t = document.getElementById(
|
|
34
|
-
|
|
36
|
+
`${this.prefixId}MXEnlargeGrid`
|
|
35
37
|
);
|
|
36
38
|
this.AssistCtx = t.getContext("2d");
|
|
37
39
|
}
|
|
@@ -39,12 +41,12 @@ let p = class extends l(f) {
|
|
|
39
41
|
this.createLeadHead(), this.createLeadName(), this.createSensAndSpeed(), this.createWaveFrom(), this.drawWaveFrom(), this.drawMeasureLine(), this.calculatedValue(), this.electricAxisAnalyse(), this.processEnlargeAnalysis();
|
|
40
42
|
}
|
|
41
43
|
};
|
|
42
|
-
p =
|
|
44
|
+
p = w([
|
|
43
45
|
d({
|
|
44
46
|
name: "MXEnlargeWave",
|
|
45
47
|
components: {
|
|
46
48
|
MXBackgroundGrid: v,
|
|
47
|
-
[
|
|
49
|
+
[a.name]: a,
|
|
48
50
|
[m.name]: m,
|
|
49
51
|
[c.name]: c,
|
|
50
52
|
[h.name]: h
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
var c = function() {
|
|
2
2
|
var i, n, e = this, s = e.$createElement, t = e._self._c || s;
|
|
3
3
|
return t("div", {
|
|
4
|
+
staticClass: "mx-enlarge-wave_container",
|
|
4
5
|
class: e.className,
|
|
5
6
|
style: {
|
|
6
7
|
width: `${e.width}px`,
|
|
7
8
|
height: `${e.height}px`
|
|
8
9
|
},
|
|
9
10
|
attrs: {
|
|
10
|
-
id: "mx-enlarge-wave"
|
|
11
|
+
id: e.prefixId + "mx-enlarge-wave"
|
|
11
12
|
}
|
|
12
13
|
}, [t("div", {
|
|
13
14
|
staticClass: "wave-selects"
|
|
@@ -48,12 +49,13 @@ var c = function() {
|
|
|
48
49
|
width: e.containerWH.width,
|
|
49
50
|
height: e.containerWH.height,
|
|
50
51
|
"grid-config": e.gridConfig,
|
|
51
|
-
"layer-id": "MXEnlargeGrid",
|
|
52
|
+
"layer-id": e.prefixId + "MXEnlargeGrid",
|
|
52
53
|
magnification: e.magnification
|
|
53
54
|
}
|
|
54
55
|
}), t("div", {
|
|
56
|
+
staticClass: "enlarge-wave-from-box_container",
|
|
55
57
|
attrs: {
|
|
56
|
-
id: "enlarge-wave-from-box"
|
|
58
|
+
id: e.prefixId + "enlarge-wave-from-box"
|
|
57
59
|
}
|
|
58
60
|
})], 1), t("div", {
|
|
59
61
|
staticClass: "table-box",
|
|
@@ -4,6 +4,8 @@ import { ZRenderType, ElementEvent, Polyline, Text, Group } from 'zrender';
|
|
|
4
4
|
import { AnalyseValue, EnlargeAnalysisData } from '../../types/Common';
|
|
5
5
|
import { MXGridConfig, LeadHeadConfig, MXLeadConfig } from '../../types/EcgWave';
|
|
6
6
|
export default class Methods extends Vue {
|
|
7
|
+
/** 前缀 id */
|
|
8
|
+
protected prefixId: string;
|
|
7
9
|
protected className: string;
|
|
8
10
|
protected width: number;
|
|
9
11
|
protected height: number;
|