costy-plus 1.1.52-0 → 1.1.54-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 +3 -2
- package/dist/es/src/CommonWaveForm/index.vue_vue_type_script_lang.js +40 -38
- package/dist/es/src/CommonWaveForm/method.d.ts +24 -1
- package/dist/es/src/CommonWaveForm/method.js +358 -293
- package/dist/es/src/CommonWaveFormQxc/method.js +2 -2
- package/dist/lib/src/CommonWaveForm/index.vue.d.ts +3 -2
- package/dist/lib/src/CommonWaveForm/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/CommonWaveForm/method.d.ts +24 -1
- package/dist/lib/src/CommonWaveForm/method.js +1 -1
- package/dist/lib/src/CommonWaveFormQxc/method.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import MethodsMinix from './method';
|
|
2
2
|
declare const CommonWaveForm_base: import("vue-class-component/lib/declarations").VueClass<MethodsMinix>;
|
|
3
3
|
declare class CommonWaveForm extends CommonWaveForm_base {
|
|
4
|
-
protected repaintTimer:
|
|
4
|
+
protected repaintTimer: ReturnType<typeof setTimeout> | null;
|
|
5
|
+
protected refreshFrame: number | null;
|
|
5
6
|
protected watchVuescrollConfig(): void;
|
|
6
7
|
protected watchAnalyseValues(): void;
|
|
7
8
|
protected watchsingleModeConfig(): void;
|
|
8
9
|
protected watchWaveConfigs(): void;
|
|
9
|
-
protected
|
|
10
|
+
protected watchWaveDataVersion(): void;
|
|
10
11
|
protected watchLeadHeadConfig(): void;
|
|
11
12
|
protected watchLeadModel(): void;
|
|
12
13
|
protected watchWidth(): void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "./style/index.css";
|
|
2
2
|
import "vue";
|
|
3
|
-
import l, { mixins as
|
|
3
|
+
import l, { 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";
|
|
4
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import { Watch as i } 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.16/node_modules/vuescroll/dist/vuescroll-native.js";
|
|
7
|
+
import d from "../MeasuringRuler/index2.js";
|
|
8
8
|
import f from "../MagnifierWave/index.js";
|
|
9
9
|
import u from "../ParallelRuler/index2.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
var
|
|
13
|
-
for (var o = n > 1 ? void 0 : n ?
|
|
14
|
-
(
|
|
15
|
-
return n && o &&
|
|
10
|
+
import w from "../BackgroundGrid/index2.js";
|
|
11
|
+
import g from "./method.js";
|
|
12
|
+
var v = Object.defineProperty, C = Object.getOwnPropertyDescriptor, t = (r, a, s, n) => {
|
|
13
|
+
for (var o = n > 1 ? void 0 : n ? C(a, s) : a, h = r.length - 1, p; h >= 0; h--)
|
|
14
|
+
(p = r[h]) && (o = (n ? p(a, s, o) : p(o)) || o);
|
|
15
|
+
return n && o && v(a, s, o), o;
|
|
16
16
|
};
|
|
17
|
-
let e = class extends
|
|
17
|
+
let e = class extends m(g) {
|
|
18
18
|
constructor() {
|
|
19
|
-
super(...arguments), this.repaintTimer =
|
|
19
|
+
super(...arguments), this.repaintTimer = null, this.refreshFrame = null;
|
|
20
20
|
}
|
|
21
21
|
watchVuescrollConfig() {
|
|
22
22
|
this.repaint();
|
|
@@ -30,12 +30,14 @@ let e = class extends c(w) {
|
|
|
30
30
|
watchWaveConfigs() {
|
|
31
31
|
this.repaint();
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
this.
|
|
33
|
+
watchWaveDataVersion() {
|
|
34
|
+
this.refreshFrame === null && (this.refreshFrame = requestAnimationFrame(() => {
|
|
35
|
+
this.refreshFrame = null, this.refreshVisibleWaveData();
|
|
36
|
+
}));
|
|
35
37
|
}
|
|
36
38
|
watchLeadHeadConfig() {
|
|
37
|
-
var
|
|
38
|
-
(
|
|
39
|
+
var r, a;
|
|
40
|
+
(r = this.leadHeadGroup) == null || r.removeAll(), (a = this.sceneIns) == null || a.remove(this.leadHeadGroup), this.drawLeadHead();
|
|
39
41
|
}
|
|
40
42
|
watchLeadModel() {
|
|
41
43
|
this.repaint();
|
|
@@ -47,71 +49,71 @@ let e = class extends c(w) {
|
|
|
47
49
|
this.repaint();
|
|
48
50
|
}
|
|
49
51
|
watchLongLeadConfig() {
|
|
50
|
-
var
|
|
51
|
-
(
|
|
52
|
+
var r;
|
|
53
|
+
(r = this.sceneIns) == null || r.clear(), this.init();
|
|
52
54
|
}
|
|
53
55
|
watchPosStart() {
|
|
54
56
|
this.registPostStart();
|
|
55
57
|
}
|
|
56
58
|
destroyed() {
|
|
57
|
-
this.repaintTimer && clearTimeout(this.repaintTimer);
|
|
59
|
+
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = null, this.refreshFrame !== null && cancelAnimationFrame(this.refreshFrame), this.refreshFrame = null;
|
|
58
60
|
}
|
|
59
|
-
repaint(
|
|
61
|
+
repaint(r = !0) {
|
|
60
62
|
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
61
63
|
var a, s;
|
|
62
|
-
|
|
64
|
+
this.repaintTimer = null, r && ((a = this.sceneIns) == null || a.clear(), (s = this.sceneIns) == null || s.resize({
|
|
63
65
|
width: this.canvasContainer.width,
|
|
64
66
|
height: this.canvasContainer.height
|
|
65
|
-
}), this.initCreatedConfig()), this.combinationDrawing(
|
|
67
|
+
}), this.initCreatedConfig()), this.combinationDrawing(r);
|
|
66
68
|
}, 200);
|
|
67
69
|
}
|
|
68
70
|
created() {
|
|
69
|
-
this.initCreatedConfig();
|
|
71
|
+
this.waveDataVersion < 0 && this.$watch("waveLists", () => this.repaint(!1), { deep: !0 }), this.initCreatedConfig();
|
|
70
72
|
}
|
|
71
73
|
mounted() {
|
|
72
74
|
this.init();
|
|
73
75
|
}
|
|
74
76
|
};
|
|
75
77
|
t([
|
|
76
|
-
|
|
78
|
+
i("vuescrollConfig", { deep: !0 })
|
|
77
79
|
], e.prototype, "watchVuescrollConfig", 1);
|
|
78
80
|
t([
|
|
79
|
-
|
|
81
|
+
i("analyseValues", { deep: !0 })
|
|
80
82
|
], e.prototype, "watchAnalyseValues", 1);
|
|
81
83
|
t([
|
|
82
|
-
|
|
84
|
+
i("singleModeConfig", { deep: !0 })
|
|
83
85
|
], e.prototype, "watchsingleModeConfig", 1);
|
|
84
86
|
t([
|
|
85
|
-
|
|
87
|
+
i("waveConfigs", { deep: !0 })
|
|
86
88
|
], e.prototype, "watchWaveConfigs", 1);
|
|
87
89
|
t([
|
|
88
|
-
|
|
89
|
-
], e.prototype, "
|
|
90
|
+
i("waveDataVersion")
|
|
91
|
+
], e.prototype, "watchWaveDataVersion", 1);
|
|
90
92
|
t([
|
|
91
|
-
|
|
93
|
+
i("leadHeadConfig", { deep: !0 })
|
|
92
94
|
], e.prototype, "watchLeadHeadConfig", 1);
|
|
93
95
|
t([
|
|
94
|
-
|
|
96
|
+
i("leadModel", { deep: !0 })
|
|
95
97
|
], e.prototype, "watchLeadModel", 1);
|
|
96
98
|
t([
|
|
97
|
-
|
|
99
|
+
i("width")
|
|
98
100
|
], e.prototype, "watchWidth", 1);
|
|
99
101
|
t([
|
|
100
|
-
|
|
102
|
+
i("height")
|
|
101
103
|
], e.prototype, "watchHeight", 1);
|
|
102
104
|
t([
|
|
103
|
-
|
|
105
|
+
i("longLeadConfig", { deep: !0 })
|
|
104
106
|
], e.prototype, "watchLongLeadConfig", 1);
|
|
105
107
|
t([
|
|
106
|
-
|
|
108
|
+
i("posStart")
|
|
107
109
|
], e.prototype, "watchPosStart", 1);
|
|
108
110
|
e = t([
|
|
109
111
|
l({
|
|
110
112
|
name: "CommonWaveForm",
|
|
111
113
|
components: {
|
|
112
|
-
vueScroll:
|
|
113
|
-
MXBackgroundGrid:
|
|
114
|
-
MXMeasuringRuler:
|
|
114
|
+
vueScroll: c,
|
|
115
|
+
MXBackgroundGrid: w,
|
|
116
|
+
MXMeasuringRuler: d,
|
|
115
117
|
MXParallelRuler: u,
|
|
116
118
|
MXMagnifierWave: f
|
|
117
119
|
}
|
|
@@ -13,6 +13,8 @@ export default class Methods extends Vue {
|
|
|
13
13
|
protected waveConfigs: WaveConfig[];
|
|
14
14
|
/** 波形数据 */
|
|
15
15
|
protected waveLists: number[][];
|
|
16
|
+
/** 数据批量更新版本,由父组件在一批区间写入完成后递增;不传(默认 -1)时沿用 waveLists 深度监听 */
|
|
17
|
+
protected waveDataVersion: number;
|
|
16
18
|
/** 导联名称数组 */
|
|
17
19
|
protected leadNames: string[];
|
|
18
20
|
/** 分析值数据,根据波形一一对应 */
|
|
@@ -151,6 +153,11 @@ export default class Methods extends Vue {
|
|
|
151
153
|
/** 场景画图 mouseDown */
|
|
152
154
|
protected sceneIsMouseDown: Readonly<boolean>;
|
|
153
155
|
protected sceneIsMouseDownX: number;
|
|
156
|
+
protected lastScrollPointIdx: number;
|
|
157
|
+
/** 滚动到未加载区间时暂存目标,数据到齐后再切换视图 */
|
|
158
|
+
protected pendingScrollPointIdx: number | null;
|
|
159
|
+
/** 首帧波形是否已完成绘制 */
|
|
160
|
+
protected hasDrawnWaveFrom: boolean;
|
|
154
161
|
/** 实际画布容器大小 */
|
|
155
162
|
protected get canvasContainer(): {
|
|
156
163
|
width: number;
|
|
@@ -202,6 +209,22 @@ export default class Methods extends Vue {
|
|
|
202
209
|
protected drawRulerNotes(): void;
|
|
203
210
|
/** 绘制标尺 */
|
|
204
211
|
protected drawRuler(startTimes?: number): void;
|
|
212
|
+
protected getWavePoints(waveInfo: {
|
|
213
|
+
pos: [number, number];
|
|
214
|
+
data: number[][];
|
|
215
|
+
}): any[];
|
|
216
|
+
/** 折线 name 形如 `<导联号>_<waveData 下标>`,取后半段定位数据,避免删除导联后序号错位 */
|
|
217
|
+
protected getWaveInfoIdx(name?: string): number;
|
|
218
|
+
protected updateWaveGroupPoints(group: Readonly<Group> | null, waveData: {
|
|
219
|
+
pos: [number, number];
|
|
220
|
+
data: number[][];
|
|
221
|
+
}[]): void;
|
|
222
|
+
/** 数据补齐时只更新当前可见折线,不重建标尺和静态图元。 */
|
|
223
|
+
protected refreshVisibleWaveData(): void;
|
|
224
|
+
/** 当前显示窗口是否已经有完整波形数据。 */
|
|
225
|
+
protected isWaveRangeLoaded(startInd: number): boolean;
|
|
226
|
+
/** 取参与绘制的导联用于加载判断;全部不可用时退回原始候选列表 */
|
|
227
|
+
protected getProbeLeadIdxs(): number[];
|
|
205
228
|
/** 绘制展示波形相关 */
|
|
206
229
|
protected drawWaveFrom(): void;
|
|
207
230
|
/** 获取 视图 单导 的数据点位 */
|
|
@@ -258,7 +281,7 @@ export default class Methods extends Vue {
|
|
|
258
281
|
/** 波形点击事件,双击放大波形 */
|
|
259
282
|
protected onDbClickWaveFrom(e: ElementEvent, type: 'single' | 'rowAndCol' | 'add'): void;
|
|
260
283
|
/** 原生滚动条事件 */
|
|
261
|
-
protected nativeScrollFunc(event:
|
|
284
|
+
protected nativeScrollFunc(event: Event): void;
|
|
262
285
|
/** 自定义滚动事件监听 */
|
|
263
286
|
protected handleScroll(vertical: HandleScrollParams, horizontal: HandleScrollParams, nativeEvent: Event): void;
|
|
264
287
|
protected scrollCommon(scrollLeft: number): void;
|