costy-plus 1.0.41-0 → 1.0.43-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.
Files changed (39) hide show
  1. package/dist/es/index.js +32 -30
  2. package/dist/es/src/CommonWaveForm/index.js +6 -0
  3. package/dist/es/src/CommonWaveForm/index.vue.d.ts +18 -0
  4. package/dist/es/src/CommonWaveForm/index.vue_vue_type_script_lang.js +102 -0
  5. package/dist/es/src/CommonWaveForm/index.vue_vue_type_template_lang.js +98 -0
  6. package/dist/es/src/CommonWaveForm/index2.js +24 -0
  7. package/dist/es/src/CommonWaveForm/interface.d.ts +194 -0
  8. package/dist/es/src/CommonWaveForm/method.d.ts +251 -0
  9. package/dist/es/src/CommonWaveForm/method.js +947 -0
  10. package/dist/es/src/CommonWaveForm/style/index.css +52 -0
  11. package/dist/es/src/EcgWave/index.vue_vue_type_template_lang.js +14 -14
  12. package/dist/es/src/EnlargeWave/medthod.d.ts +4 -2
  13. package/dist/es/src/EnlargeWave/medthod.js +131 -126
  14. package/dist/es/src/FCGWave/method.d.ts +7 -7
  15. package/dist/es/src/MagnifierWave/medthod.d.ts +16 -0
  16. package/dist/es/src/MagnifierWave/medthod.js +119 -108
  17. package/dist/es/src/index.d.ts +1 -0
  18. package/dist/es/src/index.js +30 -28
  19. package/dist/es/types/BackgroundGrid.d.ts +6 -0
  20. package/dist/lib/index.js +1 -1
  21. package/dist/lib/src/CommonWaveForm/index.js +1 -0
  22. package/dist/lib/src/CommonWaveForm/index.vue.d.ts +18 -0
  23. package/dist/lib/src/CommonWaveForm/index.vue_vue_type_script_lang.js +1 -0
  24. package/dist/lib/src/CommonWaveForm/index.vue_vue_type_template_lang.js +1 -0
  25. package/dist/lib/src/CommonWaveForm/index2.js +1 -0
  26. package/dist/lib/src/CommonWaveForm/interface.d.ts +194 -0
  27. package/dist/lib/src/CommonWaveForm/method.d.ts +251 -0
  28. package/dist/lib/src/CommonWaveForm/method.js +1 -0
  29. package/dist/lib/src/CommonWaveForm/style/index.css +52 -0
  30. package/dist/lib/src/EcgWave/index.vue_vue_type_template_lang.js +1 -1
  31. package/dist/lib/src/EnlargeWave/medthod.d.ts +4 -2
  32. package/dist/lib/src/EnlargeWave/medthod.js +1 -1
  33. package/dist/lib/src/FCGWave/method.d.ts +7 -7
  34. package/dist/lib/src/MagnifierWave/medthod.d.ts +16 -0
  35. package/dist/lib/src/MagnifierWave/medthod.js +1 -1
  36. package/dist/lib/src/index.d.ts +1 -0
  37. package/dist/lib/src/index.js +1 -1
  38. package/dist/lib/types/BackgroundGrid.d.ts +6 -0
  39. package/package.json +4 -4
package/dist/es/index.js CHANGED
@@ -1,20 +1,21 @@
1
1
  import * as e from "./src/index.js";
2
- import { default as l } from "./src/Text/index.js";
3
- import { default as s } from "./src/BackgroundGrid/index.js";
4
- import { default as u } from "./src/EcgWave/index.js";
5
- import { default as n } from "./src/MeasuringRuler/index.js";
6
- import { default as M } from "./src/ParallelRuler/index.js";
7
- import { default as i } from "./src/EnlargeWave/index.js";
2
+ import { default as m } from "./src/Text/index.js";
3
+ import { default as l } from "./src/BackgroundGrid/index.js";
4
+ import { default as p } from "./src/EcgWave/index.js";
5
+ import { default as d } from "./src/CommonWaveForm/index.js";
6
+ import { default as M } from "./src/MeasuringRuler/index.js";
7
+ import { default as i } from "./src/ParallelRuler/index.js";
8
+ import { default as v } from "./src/EnlargeWave/index.js";
8
9
  import { default as c } from "./src/FCGWave/index.js";
9
- import { default as v } from "./src/HFECGWave/index.js";
10
- import { default as G } from "./src/ELTree/index.js";
11
- import { default as W } from "./src/TurnPage/index.js";
12
- import { default as k } from "./src/Menu/index.js";
13
- import { default as P } from "./src/SideBar/index.js";
14
- import { default as b } from "./src/MedexTab/index.js";
15
- import { default as D } from "./src/MedexButton/index.js";
16
- import { default as S } from "./src/MedexDialog/index.js";
17
- import { default as $ } from "./src/UEditor/index.js";
10
+ import { default as E } from "./src/HFECGWave/index.js";
11
+ import { default as T } from "./src/ELTree/index.js";
12
+ import { default as k } from "./src/TurnPage/index.js";
13
+ import { default as P } from "./src/Menu/index.js";
14
+ import { default as b } from "./src/SideBar/index.js";
15
+ import { default as D } from "./src/MedexTab/index.js";
16
+ import { default as S } from "./src/MedexButton/index.js";
17
+ import { default as $ } from "./src/MedexDialog/index.js";
18
+ import { default as j } from "./src/UEditor/index.js";
18
19
  export * from "zrender";
19
20
  const r = {
20
21
  install: (a) => {
@@ -23,21 +24,22 @@ const r = {
23
24
  }
24
25
  };
25
26
  export {
26
- s as MXBackgroundGrid,
27
- D as MXButton,
28
- S as MXDialog,
29
- u as MXECGWaveComponents,
30
- i as MXEnlargeWave,
27
+ l as MXBackgroundGrid,
28
+ S as MXButton,
29
+ d as MXCommonWaveWaveComponents,
30
+ $ as MXDialog,
31
+ p as MXECGWaveComponents,
32
+ v as MXEnlargeWave,
31
33
  c as MXFCGWaveComponents,
32
- v as MXHFECGWaveComponents,
33
- n as MXMeasuringRuler,
34
- k as MXMenuComponents,
35
- M as MXParallelRuler,
36
- P as MXSideBar,
37
- b as MXTab,
38
- l as MXText,
39
- G as MXTree,
40
- W as MXTurnPage,
41
- $ as MXUEditor,
34
+ E as MXHFECGWaveComponents,
35
+ M as MXMeasuringRuler,
36
+ P as MXMenuComponents,
37
+ i as MXParallelRuler,
38
+ b as MXSideBar,
39
+ D as MXTab,
40
+ m as MXText,
41
+ T as MXTree,
42
+ k as MXTurnPage,
43
+ j as MXUEditor,
42
44
  r as default
43
45
  };
@@ -0,0 +1,6 @@
1
+ import o from "./index2.js";
2
+ import { withInstall as m } from "@costy-plus/utils";
3
+ const e = m(o);
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1,18 @@
1
+ import MethodsMinix from './method';
2
+ declare const CommonWaveForm_base: import("vue-class-component/lib/declarations").VueClass<MethodsMinix>;
3
+ declare class CommonWaveForm extends CommonWaveForm_base {
4
+ protected watchVuescrollConfig(): void;
5
+ protected watchAnalyseValues(): void;
6
+ protected watchWaveConfigs(): void;
7
+ protected watchWaveLists(): void;
8
+ protected watchLeadHeadConfig(): void;
9
+ protected watchLeadModel(): void;
10
+ protected watchWidth(): void;
11
+ protected watchHeight(): void;
12
+ protected watchLongLeadConfig(): void;
13
+ protected repaint(): void;
14
+ created(): void;
15
+ mounted(): void;
16
+ }
17
+ declare const _sfc_main: typeof CommonWaveForm;
18
+ export default _sfc_main;
@@ -0,0 +1,102 @@
1
+ import "./style/index.css";
2
+ import "vue";
3
+ import l, { mixins as d } 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";
4
+ 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";
5
+ import { Watch as o } 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";
6
+ import c from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js";
7
+ import m from "../MeasuringRuler/index2.js";
8
+ import f from "../MagnifierWave/index.js";
9
+ import g from "../ParallelRuler/index2.js";
10
+ import u from "../BackgroundGrid/index2.js";
11
+ import w from "./method.js";
12
+ var C = Object.defineProperty, v = Object.getOwnPropertyDescriptor, i = (e, a, s, n) => {
13
+ for (var r = n > 1 ? void 0 : n ? v(a, s) : a, h = e.length - 1, p; h >= 0; h--)
14
+ (p = e[h]) && (r = (n ? p(a, s, r) : p(r)) || r);
15
+ return n && r && C(a, s, r), r;
16
+ };
17
+ let t = class extends d(w) {
18
+ watchVuescrollConfig() {
19
+ this.repaint();
20
+ }
21
+ watchAnalyseValues() {
22
+ this.repaint();
23
+ }
24
+ watchWaveConfigs() {
25
+ this.repaint();
26
+ }
27
+ watchWaveLists() {
28
+ this.repaint();
29
+ }
30
+ watchLeadHeadConfig() {
31
+ var e, a;
32
+ (e = this.leadHeadGroup) == null || e.removeAll(), (a = this.sceneIns) == null || a.remove(this.leadHeadGroup), this.drawLeadHead();
33
+ }
34
+ watchLeadModel() {
35
+ this.repaint();
36
+ }
37
+ watchWidth() {
38
+ this.repaint();
39
+ }
40
+ watchHeight() {
41
+ this.repaint();
42
+ }
43
+ watchLongLeadConfig() {
44
+ var e;
45
+ (e = this.sceneIns) == null || e.clear(), this.init();
46
+ }
47
+ repaint() {
48
+ var e, a;
49
+ (e = this.sceneIns) == null || e.clear(), (a = this.sceneIns) == null || a.resize({
50
+ width: this.canvasContainer.width,
51
+ height: this.canvasContainer.height
52
+ }), this.initCreatedConfig(), this.combinationDrawing();
53
+ }
54
+ created() {
55
+ this.initCreatedConfig();
56
+ }
57
+ mounted() {
58
+ this.init();
59
+ }
60
+ };
61
+ i([
62
+ o("vuescrollConfig", { deep: !0 })
63
+ ], t.prototype, "watchVuescrollConfig", 1);
64
+ i([
65
+ o("analyseValues", { deep: !0 })
66
+ ], t.prototype, "watchAnalyseValues", 1);
67
+ i([
68
+ o("waveConfigs", { deep: !0 })
69
+ ], t.prototype, "watchWaveConfigs", 1);
70
+ i([
71
+ o("waveLists", { deep: !0 })
72
+ ], t.prototype, "watchWaveLists", 1);
73
+ i([
74
+ o("leadHeadConfig", { deep: !0 })
75
+ ], t.prototype, "watchLeadHeadConfig", 1);
76
+ i([
77
+ o("leadModel", { deep: !0 })
78
+ ], t.prototype, "watchLeadModel", 1);
79
+ i([
80
+ o("width")
81
+ ], t.prototype, "watchWidth", 1);
82
+ i([
83
+ o("height")
84
+ ], t.prototype, "watchHeight", 1);
85
+ i([
86
+ o("longLeadConfig", { deep: !0 })
87
+ ], t.prototype, "watchLongLeadConfig", 1);
88
+ t = i([
89
+ l({
90
+ name: "CommonWaveForm",
91
+ components: {
92
+ vueScroll: c,
93
+ MXBackgroundGrid: u,
94
+ MXMeasuringRuler: m,
95
+ MXParallelRuler: g,
96
+ MXMagnifierWave: f
97
+ }
98
+ })
99
+ ], t);
100
+ export {
101
+ t as default
102
+ };
@@ -0,0 +1,98 @@
1
+ var l = function() {
2
+ var e = this, i = e.$createElement, a = e._self._c || i;
3
+ return a("div", {
4
+ style: {
5
+ width: `${e.width}px`,
6
+ height: `${e.height}px`
7
+ },
8
+ attrs: {
9
+ id: "common-wave-form-main"
10
+ }
11
+ }, [a("MXBackgroundGrid", {
12
+ attrs: {
13
+ width: e.canvasContainer.width,
14
+ height: e.canvasContainer.height,
15
+ "grid-config": e.gridConfig,
16
+ model: e.gridConfig.model,
17
+ "layer-id": "MXGrid"
18
+ }
19
+ }), e.measurRulerConfig.isShow ? a("MXMeasuringRuler", e._g({
20
+ staticClass: "measuring-ruler",
21
+ attrs: {
22
+ width: e.canvasContainer.width,
23
+ height: e.canvasContainer.height,
24
+ "cell-mg": e.gridConfig.cellMg,
25
+ "speed-value": e.measurRulerConfig.speed || 0,
26
+ sens: e.measurRulerConfig.sens || 0
27
+ }
28
+ }, e.$listeners)) : e._e(), e.paralleRulerConfig.isShow ? a("MXParallelRuler", e._g({
29
+ staticClass: "parallel-ruler",
30
+ attrs: {
31
+ width: e.canvasContainer.width,
32
+ height: e.canvasContainer.height,
33
+ "cell-mg": e.gridConfig.cellMg,
34
+ "speed-value": e.paralleRulerConfig.speed || 0,
35
+ sens: e.paralleRulerConfig.sens || 0,
36
+ "heart-rate": e.paralleRulerConfig.heartRate
37
+ }
38
+ }, e.$listeners)) : e._e(), e.magnifierRulerConfig.isShow ? a("MXMagnifierWave", {
39
+ staticClass: "magnifier-wave",
40
+ attrs: {
41
+ width: e.canvasContainer.width,
42
+ height: e.canvasContainer.height,
43
+ "grid-config": e.gridConfig,
44
+ "speed-value": e.magnifierRulerConfig.speed || 0,
45
+ "lead-head-config": e.leadHeadConfig,
46
+ "wave-data": e.waveDataCopy,
47
+ "add-wave-data": e.addWaveDataCopy,
48
+ "single-wave-data": e.singleWaveDataCopy,
49
+ "long-lead-config": e.longLeadConfig,
50
+ "split-block-height": e.splitBlockHeight,
51
+ "split-point": e.splitPoint,
52
+ "lead-config": e.leadConfig,
53
+ "heart-fight": e.heartFight,
54
+ "normal-lead-names": e.leadNameList,
55
+ "lead-names": e.leadNames
56
+ }
57
+ }) : e._e(), a("div", {
58
+ attrs: {
59
+ id: "wave-from-box"
60
+ }
61
+ }), a("div", {
62
+ staticClass: "scroll-box",
63
+ style: {
64
+ width: `${e.width}px`,
65
+ height: `${e.height}px`
66
+ }
67
+ }, [e.scrollConfig.isNativeScroll ? a("div", {
68
+ ref: "nativeScroll",
69
+ staticClass: "native-scroll",
70
+ on: {
71
+ scroll: e.nativeScrollFunc
72
+ }
73
+ }, [a("div", {
74
+ staticClass: "scroll-empty",
75
+ style: {
76
+ width: `${e.vuescrollWH.width}px`,
77
+ height: `${e.vuescrollWH.height}px`
78
+ }
79
+ })]) : a("vueScroll", {
80
+ ref: "vueScroll",
81
+ attrs: {
82
+ ops: e.scrollConfig
83
+ },
84
+ on: {
85
+ "handle-scroll": e.handleScroll
86
+ }
87
+ }, [a("div", {
88
+ staticClass: "scroll-empty",
89
+ style: {
90
+ width: `${e.vuescrollWH.width}px`,
91
+ height: `${e.vuescrollWH.height}px`
92
+ }
93
+ })])], 1)], 1);
94
+ }, t = [];
95
+ export {
96
+ l as render,
97
+ t as staticRenderFns
98
+ };
@@ -0,0 +1,24 @@
1
+ import t from "./index.vue_vue_type_script_lang.js";
2
+ import { staticRenderFns as e, render as r } from "./index.vue_vue_type_template_lang.js";
3
+ import m from "../../_virtual/vueComponentNormalizer.js";
4
+ const n = {};
5
+ var l = /* @__PURE__ */ m(
6
+ t,
7
+ r,
8
+ e,
9
+ !1,
10
+ s,
11
+ null,
12
+ null,
13
+ null
14
+ );
15
+ function s(i) {
16
+ for (let o in n)
17
+ this[o] = n[o];
18
+ }
19
+ const a = /* @__PURE__ */ function() {
20
+ return l.exports;
21
+ }();
22
+ export {
23
+ a as default
24
+ };
@@ -0,0 +1,194 @@
1
+ /** 视图模式 */
2
+ export interface LeadModle {
3
+ /** + N 导联 */
4
+ add: number;
5
+ column: number;
6
+ line: number;
7
+ name: string;
8
+ /** 是否是 单导模式 */
9
+ isSingleMode: boolean;
10
+ /** 是否连续 */
11
+ isContinuous: boolean;
12
+ /** 是否展示起搏通道 */
13
+ isShowPacing: boolean;
14
+ /** 波形显示长度 1: 打印宽度显示;0:屏幕宽度显示*/
15
+ ecgareawidth: 1 | 0;
16
+ /** 整个开始显示位置 */
17
+ posStart: number;
18
+ /** 导联数量 */
19
+ leadCount: number;
20
+ /** 公共走纸 */
21
+ publicSpeed: number;
22
+ /** 公共采样率 */
23
+ publicSampleRate: number;
24
+ }
25
+ /** 单导模式配置 */
26
+ export interface SingleModeConfig {
27
+ /** 单导默认选中第几条波形 */
28
+ defaultSelect: number;
29
+ }
30
+ /** 波形双击放大组件配置 */
31
+ export interface EnlargeWaveConfig {
32
+ /** 默认组件宽高 */
33
+ height?: number;
34
+ width?: number;
35
+ /** 同步分析值 是否默认选中 */
36
+ isSyncAnalyseValueCheck: boolean;
37
+ }
38
+ /** 平行尺配置 */
39
+ export interface ParalleRulerConfig {
40
+ isShow: boolean;
41
+ /** 心率 */
42
+ heartRate: number;
43
+ speed: number;
44
+ sens: number;
45
+ }
46
+ /** 测量尺 */
47
+ export interface MeasurRulerConfig {
48
+ isShow: boolean;
49
+ speed: number;
50
+ sens: number;
51
+ }
52
+ /** 放大镜 */
53
+ export interface MagnifierRulerConfig {
54
+ isShow: boolean;
55
+ speed: number;
56
+ }
57
+ /** 波形配置 */
58
+ export interface WaveConfig {
59
+ /** 波形索引 */
60
+ key: number;
61
+ /** 增益 */
62
+ gain: number;
63
+ /** 增益名称 */
64
+ gainName: string;
65
+ /** 走纸 */
66
+ speed: number;
67
+ /** 走纸名称 */
68
+ speedName: string;
69
+ /** 导联名称索引 */
70
+ leadIdx: number;
71
+ /** 导联名称 */
72
+ leadName: string;
73
+ /** 采样率 */
74
+ sampleRate: number;
75
+ /** 灵敏度 */
76
+ sensitivity: number;
77
+ /** 是否是到导联脱落 */
78
+ isLeadOff: boolean;
79
+ /** 是否是导联删除 */
80
+ isLeadDelete: boolean;
81
+ /** 是否可见 */
82
+ visible: boolean;
83
+ /** 是否显示导联头 */
84
+ isShowLeadHead: boolean;
85
+ /** 显示位置起始点 */
86
+ posX?: number;
87
+ posY?: number;
88
+ /** 加导联位置起始点 */
89
+ addPosX?: number;
90
+ addPosY?: number;
91
+ }
92
+ /** 加导联配置展示 */
93
+ export interface LongLeadConfig {
94
+ /** 波形索引 */
95
+ leadIdxs: number[];
96
+ /** 导联名称索引 */
97
+ leadNames: number[];
98
+ }
99
+ /** 底部规则尺子配置 */
100
+ export interface BottomRulerConfig {
101
+ isShow: boolean;
102
+ gainName: string;
103
+ /** 采样率 */
104
+ sampleRate: number;
105
+ /** 增益 */
106
+ gain: number;
107
+ speedName: string;
108
+ /** 走纸 */
109
+ speed: number;
110
+ }
111
+ /** 心搏信息、位置等 */
112
+ export interface HeartBeatPosition {
113
+ /** 心搏 索引(第几个心拍) */
114
+ index: number;
115
+ /** 位置 (r点位置)*/
116
+ position: number;
117
+ /** 心率 */
118
+ heartrate: number;
119
+ /** RR间期 */
120
+ interval: number;
121
+ /** T波电轴 */
122
+ telectricalaxis: number;
123
+ /** QRS-T夹角 */
124
+ qrstCompany: string;
125
+ /** HFECG QRSend */
126
+ QRSend?: number;
127
+ /** HFECG QRSstart */
128
+ QRSstart?: number;
129
+ /** HFECG NotchInfoQRS */
130
+ NotchInfoQRS?: number[][];
131
+ }
132
+ /** 分析值 */
133
+ export interface AnalyseValue {
134
+ AnabyBeat: AnabyBeat;
135
+ BeatID: number;
136
+ KeyPosByBeat: KeyPosByBeat;
137
+ }
138
+ export interface AnabyBeat {
139
+ 'QTd': number;
140
+ 'QTc': number[] | number;
141
+ 'SV3Amp': string;
142
+ 'PR': number;
143
+ 'QTcd': number[] | number;
144
+ 'BeatType': number;
145
+ 'SV1Amp': string;
146
+ 'QT': number;
147
+ 'QRSAxis': number;
148
+ 'SV5Amp': string;
149
+ 'TAxis': number;
150
+ 'AtrialRate': number;
151
+ 'Td': number;
152
+ 'RV5Amp': string;
153
+ 'VentricularRate': number;
154
+ 'Pd': number;
155
+ 'QRSd': number;
156
+ 'RV3Amp': string;
157
+ 'PAxis': number;
158
+ 'RV1Amp': string;
159
+ 'QTdr': string;
160
+ 'QRS_T': number;
161
+ }
162
+ export interface KeyPosByBeat {
163
+ 'PPpeak': number;
164
+ 'Tend': number;
165
+ 'PPstart': number;
166
+ 'Tpeak': number;
167
+ 'TPpeak': number;
168
+ 'QRSend': number;
169
+ 'Pend': number;
170
+ 'Tstart': number;
171
+ 'RPpoint': number;
172
+ 'Ppeak': number;
173
+ 'SPpoint': number;
174
+ 'Rpoint': number;
175
+ 'PPend': number;
176
+ 'TPend': number;
177
+ 'QRSstart': number;
178
+ 'Pstart': number;
179
+ 'TPstart': number;
180
+ }
181
+ /** 显示 心搏 配置 */
182
+ export interface HeartFight {
183
+ isShow: boolean;
184
+ /** 是否是选中心搏模式 */
185
+ mode: boolean;
186
+ /** 默认选中哪个心搏 */
187
+ defaultSelect: number;
188
+ heartrate: boolean;
189
+ interval: boolean;
190
+ qrstCompany: boolean;
191
+ telectricalaxis: boolean;
192
+ /** 展示第几个波形的心拍 */
193
+ showIdxPai: number;
194
+ }