costy-plus 1.1.46-0 → 1.1.47-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/CommonWaveFormQxc/index.vue.d.ts +1 -1
- package/dist/es/src/CommonWaveFormQxc/index.vue_vue_type_script_lang.js +10 -10
- package/dist/es/src/CommonWaveFormQxc/method.d.ts +16 -0
- package/dist/es/src/CommonWaveFormQxc/method.js +324 -282
- package/dist/lib/src/CommonWaveFormQxc/index.vue.d.ts +1 -1
- package/dist/lib/src/CommonWaveFormQxc/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/CommonWaveFormQxc/method.d.ts +16 -0
- package/dist/lib/src/CommonWaveFormQxc/method.js +1 -1
- package/package.json +33 -33
|
@@ -6,7 +6,7 @@ declare class CommonWaveForm extends CommonWaveForm_base {
|
|
|
6
6
|
protected watchAnalyseValues(): void;
|
|
7
7
|
protected watchsingleModeConfig(): void;
|
|
8
8
|
protected watchWaveConfigs(): void;
|
|
9
|
-
protected
|
|
9
|
+
protected watchWaveDataVersion(): void;
|
|
10
10
|
protected watchLeadHeadConfig(): void;
|
|
11
11
|
protected watchLeadModel(): void;
|
|
12
12
|
protected watchWidth(): void;
|
|
@@ -9,10 +9,10 @@ import u from "../MagnifierWave/index.js";
|
|
|
9
9
|
import f from "../ParallelRuler/index2.js";
|
|
10
10
|
import g from "../BackgroundGrid/index2.js";
|
|
11
11
|
import w from "./method.js";
|
|
12
|
-
var
|
|
13
|
-
for (var o =
|
|
14
|
-
(p = e[h]) && (o = (
|
|
15
|
-
return
|
|
12
|
+
var v = Object.defineProperty, C = Object.getOwnPropertyDescriptor, i = (e, a, n, s) => {
|
|
13
|
+
for (var o = s > 1 ? void 0 : s ? C(a, n) : a, h = e.length - 1, p; h >= 0; h--)
|
|
14
|
+
(p = e[h]) && (o = (s ? p(a, n, o) : p(o)) || o);
|
|
15
|
+
return s && o && v(a, n, o), o;
|
|
16
16
|
};
|
|
17
17
|
let t = class extends c(w) {
|
|
18
18
|
constructor() {
|
|
@@ -33,8 +33,8 @@ let t = class extends c(w) {
|
|
|
33
33
|
watchWaveConfigs() {
|
|
34
34
|
this.repaint();
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
this.
|
|
36
|
+
watchWaveDataVersion() {
|
|
37
|
+
this.refreshVisibleWaveData();
|
|
38
38
|
}
|
|
39
39
|
watchLeadHeadConfig() {
|
|
40
40
|
var e, a;
|
|
@@ -65,8 +65,8 @@ let t = class extends c(w) {
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
68
|
-
var a,
|
|
69
|
-
this.repaintTimer = null, e && ((a = this.sceneIns) == null || a.clear(), (
|
|
68
|
+
var a, n;
|
|
69
|
+
this.repaintTimer = null, e && ((a = this.sceneIns) == null || a.clear(), (n = this.sceneIns) == null || n.resize({
|
|
70
70
|
width: this.canvasContainer.width,
|
|
71
71
|
height: this.canvasContainer.height
|
|
72
72
|
}), this.initCreatedConfig()), this.combinationDrawing(e);
|
|
@@ -92,8 +92,8 @@ i([
|
|
|
92
92
|
r("waveConfigs", { deep: !0 })
|
|
93
93
|
], t.prototype, "watchWaveConfigs", 1);
|
|
94
94
|
i([
|
|
95
|
-
r("
|
|
96
|
-
], t.prototype, "
|
|
95
|
+
r("waveDataVersion")
|
|
96
|
+
], t.prototype, "watchWaveDataVersion", 1);
|
|
97
97
|
i([
|
|
98
98
|
r("leadHeadConfig", { deep: !0 })
|
|
99
99
|
], t.prototype, "watchLeadHeadConfig", 1);
|
|
@@ -13,6 +13,8 @@ export default class Methods extends Vue {
|
|
|
13
13
|
protected waveConfigs: WaveConfig[];
|
|
14
14
|
/** 波形数据 */
|
|
15
15
|
protected waveLists: number[][];
|
|
16
|
+
/** 数据批量更新版本,由父组件在一批区间写入完成后递增 */
|
|
17
|
+
protected waveDataVersion: number;
|
|
16
18
|
/** 导联名称数组 */
|
|
17
19
|
protected leadNames: string[];
|
|
18
20
|
/** 分析值数据,根据波形一一对应 */
|
|
@@ -158,6 +160,8 @@ export default class Methods extends Vue {
|
|
|
158
160
|
protected sceneIsMouseDownX: number;
|
|
159
161
|
protected lastScrollPointIdx: number;
|
|
160
162
|
protected lastScrollLeft: number;
|
|
163
|
+
/** 滚动到未加载区间时暂存目标,数据到齐后再切换视图 */
|
|
164
|
+
protected pendingScrollPointIdx: number | null;
|
|
161
165
|
/** 实际画布容器大小 */
|
|
162
166
|
protected get canvasContainer(): {
|
|
163
167
|
width: number;
|
|
@@ -213,6 +217,18 @@ export default class Methods extends Vue {
|
|
|
213
217
|
protected drawRulerNotes(): void;
|
|
214
218
|
/** 绘制标尺 */
|
|
215
219
|
protected drawRuler(startTimes?: number): void;
|
|
220
|
+
protected getWavePoints(waveInfo: {
|
|
221
|
+
pos: [number, number];
|
|
222
|
+
data: number[][];
|
|
223
|
+
}): number[][];
|
|
224
|
+
protected updateWaveGroupPoints(group: Readonly<Group> | null, waveData: {
|
|
225
|
+
pos: [number, number];
|
|
226
|
+
data: number[][];
|
|
227
|
+
}[]): void;
|
|
228
|
+
/** 数据补齐时只更新当前可见折线,不重建标尺和静态图元。 */
|
|
229
|
+
protected refreshVisibleWaveData(): void;
|
|
230
|
+
/** 当前显示窗口是否已经有完整波形数据。 */
|
|
231
|
+
protected isWaveRangeLoaded(startInd: number): boolean;
|
|
216
232
|
/** 绘制展示波形相关 */
|
|
217
233
|
protected drawWaveFrom(): void;
|
|
218
234
|
/** 获取 视图 单导 的数据点位 */
|