costy-plus 1.0.84-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 +18 -16
- package/dist/es/src/EnlargeWaveView/index.js +6 -0
- package/dist/es/src/EnlargeWaveView/index.vue.d.ts +10 -0
- package/dist/es/src/EnlargeWaveView/index.vue_vue_type_script_lang.js +58 -0
- package/dist/es/src/EnlargeWaveView/index.vue_vue_type_template_lang.js +107 -0
- package/dist/es/src/EnlargeWaveView/index2.js +24 -0
- package/dist/es/src/EnlargeWaveView/medthod.d.ts +148 -0
- package/dist/es/src/EnlargeWaveView/medthod.js +400 -0
- package/dist/es/src/EnlargeWaveView/style/index.css +95 -0
- package/dist/es/src/index.d.ts +1 -0
- package/dist/es/src/index.js +22 -20
- package/dist/lib/index.js +1 -1
- package/dist/lib/src/EnlargeWaveView/index.js +1 -0
- package/dist/lib/src/EnlargeWaveView/index.vue.d.ts +10 -0
- package/dist/lib/src/EnlargeWaveView/index.vue_vue_type_script_lang.js +1 -0
- package/dist/lib/src/EnlargeWaveView/index.vue_vue_type_template_lang.js +1 -0
- package/dist/lib/src/EnlargeWaveView/index2.js +1 -0
- package/dist/lib/src/EnlargeWaveView/medthod.d.ts +148 -0
- package/dist/lib/src/EnlargeWaveView/medthod.js +1 -0
- package/dist/lib/src/EnlargeWaveView/style/index.css +95 -0
- package/dist/lib/src/index.d.ts +1 -0
- package/dist/lib/src/index.js +1 -1
- package/package.json +33 -33
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/
|
|
12
|
-
import { default as R } from "./src/
|
|
13
|
-
import { default as F } from "./src/
|
|
14
|
-
import { default as b } from "./src/
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
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
|
|
20
|
-
import { default as
|
|
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
|
-
|
|
33
|
+
z as MXDialog,
|
|
33
34
|
p as MXECGWaveComponents,
|
|
34
35
|
E as MXEnlargeWave,
|
|
35
|
-
T as
|
|
36
|
-
R as
|
|
36
|
+
T as MXEnlargeWaveView,
|
|
37
|
+
R as MXFCGWaveComponents,
|
|
38
|
+
F as MXHFECGWaveComponents,
|
|
37
39
|
i as MXMeasuringRuler,
|
|
38
|
-
|
|
40
|
+
H as MXMenuComponents,
|
|
39
41
|
M as MXMonitorWaveComponents,
|
|
40
42
|
g as MXParallelRuler,
|
|
41
|
-
|
|
43
|
+
U as MXSideBar,
|
|
42
44
|
$ as MXTab,
|
|
43
45
|
m as MXText,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
b as MXTree,
|
|
47
|
+
y as MXTurnPage,
|
|
48
|
+
I as MXUEditor,
|
|
47
49
|
v as MeasuringRulerMore,
|
|
48
50
|
r as default
|
|
49
51
|
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import o from "./index.vue_vue_type_script_lang.js";
|
|
2
|
+
import { staticRenderFns as t, render as r } from "./index.vue_vue_type_template_lang.js";
|
|
3
|
+
import l from "../../_virtual/vueComponentNormalizer.js";
|
|
4
|
+
const n = {};
|
|
5
|
+
var s = /* @__PURE__ */ l(
|
|
6
|
+
o,
|
|
7
|
+
r,
|
|
8
|
+
t,
|
|
9
|
+
!1,
|
|
10
|
+
i,
|
|
11
|
+
null,
|
|
12
|
+
null,
|
|
13
|
+
null
|
|
14
|
+
);
|
|
15
|
+
function i(a) {
|
|
16
|
+
for (let e in n)
|
|
17
|
+
this[e] = n[e];
|
|
18
|
+
}
|
|
19
|
+
const _ = /* @__PURE__ */ function() {
|
|
20
|
+
return s.exports;
|
|
21
|
+
}();
|
|
22
|
+
export {
|
|
23
|
+
_ as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Vue } from 'vue-property-decorator';
|
|
2
|
+
import { AnalysisMode } from '@costy-plus/utils';
|
|
3
|
+
import { ZRenderType, Polyline, Text, Group } from 'zrender';
|
|
4
|
+
import { AnalyseValue } from '../../types/Common';
|
|
5
|
+
import { MXGridConfig, LeadHeadConfig, MXLeadConfig } from '../../types/EcgWave';
|
|
6
|
+
export default class Methods extends Vue {
|
|
7
|
+
protected DisplayLeadInfo: {
|
|
8
|
+
startPos: number;
|
|
9
|
+
endPos: number;
|
|
10
|
+
};
|
|
11
|
+
protected LeadNameTextsPorps: string[];
|
|
12
|
+
/** 前缀 id */
|
|
13
|
+
protected prefixId: string;
|
|
14
|
+
protected className: string;
|
|
15
|
+
protected width: number;
|
|
16
|
+
protected height: number;
|
|
17
|
+
protected gridConfig: MXGridConfig;
|
|
18
|
+
/** 走纸速度 */
|
|
19
|
+
protected speedValue: number;
|
|
20
|
+
/** 增益 */
|
|
21
|
+
protected sens: number;
|
|
22
|
+
/** 数据两点之间的距离(导联) */
|
|
23
|
+
protected step: number;
|
|
24
|
+
protected sampleRate: number;
|
|
25
|
+
protected sensitivity: number;
|
|
26
|
+
/** 复合波数据点位 */
|
|
27
|
+
protected complexData: number[][];
|
|
28
|
+
/** 选中心搏数据点位 */
|
|
29
|
+
protected normalData: number[][];
|
|
30
|
+
/** 导联名称数组 */
|
|
31
|
+
protected outLeadNames: string[] | null;
|
|
32
|
+
/** 是否显示当前组件 */
|
|
33
|
+
protected isShowEnlargeWave: boolean;
|
|
34
|
+
protected leadHeadConfig: LeadHeadConfig;
|
|
35
|
+
protected leadConfig: MXLeadConfig;
|
|
36
|
+
/** 放大倍数 */
|
|
37
|
+
protected magnification: number;
|
|
38
|
+
/** 波形导联名称数据 */
|
|
39
|
+
protected leadNameList: number[];
|
|
40
|
+
/** 外部 当前选中导联 */
|
|
41
|
+
protected activeLeadIdx: number;
|
|
42
|
+
/** 外部 当前选中的分析值相关 */
|
|
43
|
+
protected activeLeadAnalyseValue: AnalyseValue & {
|
|
44
|
+
BeatCount: number;
|
|
45
|
+
} | null;
|
|
46
|
+
/** 当前组件类型 */
|
|
47
|
+
protected typeClass: 'ECG' | 'HFECG';
|
|
48
|
+
/** 导联颜色 */
|
|
49
|
+
protected leadColors: string[];
|
|
50
|
+
/** 双击放大波形 是什么模式 */
|
|
51
|
+
protected enlargeWaveMode: AnalysisMode;
|
|
52
|
+
/** 所有增益配置 */
|
|
53
|
+
protected enlargeGains: {
|
|
54
|
+
name: string;
|
|
55
|
+
value: number;
|
|
56
|
+
}[];
|
|
57
|
+
/** 所有走纸速度 */
|
|
58
|
+
protected enlargeSpeeds: {
|
|
59
|
+
name: string;
|
|
60
|
+
value: number;
|
|
61
|
+
}[];
|
|
62
|
+
protected AnalysisMode: typeof AnalysisMode;
|
|
63
|
+
protected AnalyseParameterTable: {
|
|
64
|
+
key: string;
|
|
65
|
+
name: string;
|
|
66
|
+
unit: string;
|
|
67
|
+
}[];
|
|
68
|
+
protected sceneIns: Readonly<ZRenderType | null>;
|
|
69
|
+
protected AssistCtx: Readonly<CanvasRenderingContext2D | null>;
|
|
70
|
+
protected leadNameIns: Readonly<Text | null>;
|
|
71
|
+
protected sensAndSpeedIns: Readonly<Text | null>;
|
|
72
|
+
protected waveFromIns: Readonly<Polyline | null>;
|
|
73
|
+
protected waveFromGroup: Readonly<Group | null>;
|
|
74
|
+
protected measureGroup: Readonly<Group | null>;
|
|
75
|
+
protected leadHeadIns: Readonly<Polyline | null>;
|
|
76
|
+
protected M1: Readonly<Group | null>;
|
|
77
|
+
protected M2: Readonly<Group | null>;
|
|
78
|
+
protected P1: Readonly<Group | null>;
|
|
79
|
+
protected P2: Readonly<Group | null>;
|
|
80
|
+
protected R1: Readonly<Group | null>;
|
|
81
|
+
protected R2: Readonly<Group | null>;
|
|
82
|
+
protected T1: Readonly<Group | null>;
|
|
83
|
+
protected T2: Readonly<Group | null>;
|
|
84
|
+
protected bottomSafeAreaH: number;
|
|
85
|
+
protected drawWaveFromX: number;
|
|
86
|
+
protected dbClickTime: number;
|
|
87
|
+
protected startPos: number;
|
|
88
|
+
protected currentGainIdx: number;
|
|
89
|
+
protected currentSpeedIdx: number;
|
|
90
|
+
protected currentLeadAnalyseValueIdx: number;
|
|
91
|
+
protected longdata: Readonly<number[] | undefined>;
|
|
92
|
+
/** 导联波长 px */
|
|
93
|
+
protected waveFromLenPX: number;
|
|
94
|
+
/** 导联名称数组 */
|
|
95
|
+
protected leadNames: {
|
|
96
|
+
name: string;
|
|
97
|
+
val: number;
|
|
98
|
+
}[];
|
|
99
|
+
/** 当前选中的导联 */
|
|
100
|
+
protected leadNameActive: {
|
|
101
|
+
name: string;
|
|
102
|
+
val: number;
|
|
103
|
+
};
|
|
104
|
+
/** 当前增益 */
|
|
105
|
+
protected currentSens: number;
|
|
106
|
+
/** 当前 走纸速度 */
|
|
107
|
+
protected currentSpeedValue: number;
|
|
108
|
+
/** 当前 数据两点之间的距离(导联) */
|
|
109
|
+
protected currentStep: number;
|
|
110
|
+
protected watchActiveLeadIdx(val: number): void;
|
|
111
|
+
protected watchLeadNameList(val: number[]): void;
|
|
112
|
+
protected get containerWH(): {
|
|
113
|
+
width: number;
|
|
114
|
+
height: number;
|
|
115
|
+
};
|
|
116
|
+
protected destroyed(): void;
|
|
117
|
+
protected resetDefaultValue(): void;
|
|
118
|
+
protected created(): void;
|
|
119
|
+
protected processEnlargeAnalysisData(): void;
|
|
120
|
+
/** 导联选择事件 */
|
|
121
|
+
protected selectLeadName(params: {
|
|
122
|
+
name: string;
|
|
123
|
+
val: number;
|
|
124
|
+
}): void;
|
|
125
|
+
/** 创建 导联头 图形 */
|
|
126
|
+
protected createLeadHead(): void;
|
|
127
|
+
/** 创建 导联名称 */
|
|
128
|
+
protected createLeadName(): void;
|
|
129
|
+
protected createSensAndSpeed(): void;
|
|
130
|
+
/** 创建导联图形 */
|
|
131
|
+
protected createWaveFrom(): void;
|
|
132
|
+
protected drawWaveFrom(): void;
|
|
133
|
+
protected drawAllLead(): void;
|
|
134
|
+
/** 画单个 心搏图形 */
|
|
135
|
+
protected drawSingleLead(): void;
|
|
136
|
+
protected getWaveFrom(leadIdx?: number): {
|
|
137
|
+
originData: number[];
|
|
138
|
+
beatData: number[];
|
|
139
|
+
startPos: number;
|
|
140
|
+
};
|
|
141
|
+
/** 切换 增益 */
|
|
142
|
+
protected toggleGain(val: boolean): void;
|
|
143
|
+
/** 切换 走纸 */
|
|
144
|
+
protected toggleSpeeds(val: boolean): void;
|
|
145
|
+
/** 重绘 */
|
|
146
|
+
protected toggleRender(): void;
|
|
147
|
+
protected mainBoxDbClick(): void;
|
|
148
|
+
}
|