costy-plus 1.1.44-0 → 1.1.45-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 +66 -65
- package/dist/es/src/CommonWaveFormQxc/method.d.ts +3 -3
- package/dist/es/src/CommonWaveFormQxc/method.js +639 -698
- 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 +3 -3
- package/dist/lib/src/CommonWaveFormQxc/method.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
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
5
|
protected watchVuescrollConfig(): void;
|
|
6
6
|
protected watchAnalyseValues(): void;
|
|
7
7
|
protected watchsingleModeConfig(): void;
|
|
@@ -1,74 +1,75 @@
|
|
|
1
1
|
import "./style/index.css";
|
|
2
2
|
import "vue";
|
|
3
|
-
import
|
|
3
|
+
import l, { mixins as c } 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
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
var
|
|
13
|
-
for (var
|
|
14
|
-
(
|
|
15
|
-
return
|
|
5
|
+
import { Watch as r } 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 d from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.16/node_modules/vuescroll/dist/vuescroll-native.js";
|
|
7
|
+
import m from "../MeasuringRuler/index2.js";
|
|
8
|
+
import u from "../MagnifierWave/index.js";
|
|
9
|
+
import f from "../ParallelRuler/index2.js";
|
|
10
|
+
import g 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 o = n > 1 ? void 0 : n ? v(a, s) : a, h = e.length - 1, p; h >= 0; h--)
|
|
14
|
+
(p = e[h]) && (o = (n ? p(a, s, o) : p(o)) || o);
|
|
15
|
+
return n && o && C(a, s, o), o;
|
|
16
16
|
};
|
|
17
|
-
let t = class extends
|
|
17
|
+
let t = class extends c(w) {
|
|
18
18
|
constructor() {
|
|
19
|
-
super(...arguments), this.repaintTimer =
|
|
19
|
+
super(...arguments), this.repaintTimer = null;
|
|
20
20
|
}
|
|
21
21
|
watchVuescrollConfig() {
|
|
22
|
-
|
|
22
|
+
this.repaint();
|
|
23
23
|
}
|
|
24
24
|
watchAnalyseValues() {
|
|
25
|
-
|
|
25
|
+
this.nearestHeartInfo = {
|
|
26
26
|
analyseValue: null,
|
|
27
27
|
insertInfo: null
|
|
28
28
|
}, this.repaint();
|
|
29
29
|
}
|
|
30
30
|
watchsingleModeConfig() {
|
|
31
|
-
|
|
31
|
+
this.repaint();
|
|
32
32
|
}
|
|
33
33
|
watchWaveConfigs() {
|
|
34
|
-
|
|
34
|
+
this.repaint();
|
|
35
35
|
}
|
|
36
36
|
watchWaveLists() {
|
|
37
|
-
|
|
37
|
+
this.repaint(!1);
|
|
38
38
|
}
|
|
39
39
|
watchLeadHeadConfig() {
|
|
40
|
-
var
|
|
41
|
-
|
|
40
|
+
var e, a;
|
|
41
|
+
(e = this.leadHeadGroup) == null || e.removeAll(), (a = this.sceneIns) == null || a.remove(this.leadHeadGroup), this.drawLeadHead();
|
|
42
42
|
}
|
|
43
43
|
watchLeadModel() {
|
|
44
|
-
|
|
44
|
+
this.repaint();
|
|
45
45
|
}
|
|
46
46
|
watchWidth() {
|
|
47
|
-
|
|
47
|
+
this.repaint();
|
|
48
48
|
}
|
|
49
49
|
watchHeight() {
|
|
50
|
-
|
|
50
|
+
this.repaint();
|
|
51
51
|
}
|
|
52
52
|
watchLongLeadConfig() {
|
|
53
|
-
var
|
|
54
|
-
|
|
53
|
+
var e;
|
|
54
|
+
(e = this.sceneIns) == null || e.clear(), this.init();
|
|
55
55
|
}
|
|
56
56
|
watchPosStart() {
|
|
57
|
-
|
|
57
|
+
this.registPostStart();
|
|
58
58
|
}
|
|
59
59
|
destroyed() {
|
|
60
|
-
this.repaintTimer && clearTimeout(this.repaintTimer);
|
|
60
|
+
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = null;
|
|
61
61
|
}
|
|
62
|
-
repaint(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
repaint(e = !0) {
|
|
63
|
+
if (!e) {
|
|
64
|
+
this.combinationDrawing(e);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
68
|
+
var a, s;
|
|
69
|
+
this.repaintTimer = null, e && ((a = this.sceneIns) == null || a.clear(), (s = this.sceneIns) == null || s.resize({
|
|
67
70
|
width: this.canvasContainer.width,
|
|
68
71
|
height: this.canvasContainer.height
|
|
69
|
-
}), this.initCreatedConfig()), this.combinationDrawing(
|
|
70
|
-
const n = Date.now();
|
|
71
|
-
window.global_tools_recordLogs({ title: "test_time repaint", msg: `\u7ED3\u675F\u65F6\u95F4: ${this.formatNow(n)}, \u6D88\u8017\u65F6\u95F4: ${n - a}ms`, type: "info" });
|
|
72
|
+
}), this.initCreatedConfig()), this.combinationDrawing(e);
|
|
72
73
|
}, 200);
|
|
73
74
|
}
|
|
74
75
|
created() {
|
|
@@ -78,48 +79,48 @@ let t = class extends m(f) {
|
|
|
78
79
|
this.init();
|
|
79
80
|
}
|
|
80
81
|
};
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
i([
|
|
83
|
+
r("vuescrollConfig", { deep: !0 })
|
|
83
84
|
], t.prototype, "watchVuescrollConfig", 1);
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
i([
|
|
86
|
+
r("analyseValues", { deep: !0 })
|
|
86
87
|
], t.prototype, "watchAnalyseValues", 1);
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
i([
|
|
89
|
+
r("singleModeConfig", { deep: !0 })
|
|
89
90
|
], t.prototype, "watchsingleModeConfig", 1);
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
i([
|
|
92
|
+
r("waveConfigs", { deep: !0 })
|
|
92
93
|
], t.prototype, "watchWaveConfigs", 1);
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
i([
|
|
95
|
+
r("waveLists", { deep: !0 })
|
|
95
96
|
], t.prototype, "watchWaveLists", 1);
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
i([
|
|
98
|
+
r("leadHeadConfig", { deep: !0 })
|
|
98
99
|
], t.prototype, "watchLeadHeadConfig", 1);
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
i([
|
|
101
|
+
r("leadModel", { deep: !0 })
|
|
101
102
|
], t.prototype, "watchLeadModel", 1);
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
i([
|
|
104
|
+
r("width")
|
|
104
105
|
], t.prototype, "watchWidth", 1);
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
i([
|
|
107
|
+
r("height")
|
|
107
108
|
], t.prototype, "watchHeight", 1);
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
i([
|
|
110
|
+
r("longLeadConfig", { deep: !0 })
|
|
110
111
|
], t.prototype, "watchLongLeadConfig", 1);
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
i([
|
|
113
|
+
r("posStart")
|
|
113
114
|
], t.prototype, "watchPosStart", 1);
|
|
114
|
-
t =
|
|
115
|
-
|
|
115
|
+
t = i([
|
|
116
|
+
l({
|
|
116
117
|
name: "CommonWaveForm",
|
|
117
118
|
components: {
|
|
118
|
-
vueScroll:
|
|
119
|
-
MXBackgroundGrid:
|
|
120
|
-
MXMeasuringRuler:
|
|
121
|
-
MXParallelRuler:
|
|
122
|
-
MXMagnifierWave:
|
|
119
|
+
vueScroll: d,
|
|
120
|
+
MXBackgroundGrid: g,
|
|
121
|
+
MXMeasuringRuler: m,
|
|
122
|
+
MXParallelRuler: f,
|
|
123
|
+
MXMagnifierWave: u
|
|
123
124
|
}
|
|
124
125
|
})
|
|
125
126
|
], t);
|
|
@@ -156,8 +156,8 @@ export default class Methods extends Vue {
|
|
|
156
156
|
/** 场景画图 mouseDown */
|
|
157
157
|
protected sceneIsMouseDown: Readonly<boolean>;
|
|
158
158
|
protected sceneIsMouseDownX: number;
|
|
159
|
-
|
|
160
|
-
protected
|
|
159
|
+
protected lastScrollPointIdx: number;
|
|
160
|
+
protected lastScrollLeft: number;
|
|
161
161
|
/** 实际画布容器大小 */
|
|
162
162
|
protected get canvasContainer(): {
|
|
163
163
|
width: number;
|
|
@@ -271,7 +271,7 @@ export default class Methods extends Vue {
|
|
|
271
271
|
/** 波形点击事件,双击放大波形 */
|
|
272
272
|
protected onDbClickWaveFrom(e: ElementEvent, type: 'single' | 'rowAndCol' | 'add'): void;
|
|
273
273
|
/** 原生滚动条事件 */
|
|
274
|
-
protected nativeScrollFunc(event:
|
|
274
|
+
protected nativeScrollFunc(event: Event): void;
|
|
275
275
|
/** 自定义滚动事件监听 */
|
|
276
276
|
protected handleScroll(vertical: HandleScrollParams, horizontal: HandleScrollParams, nativeEvent: Event): void;
|
|
277
277
|
protected scrollCommon(scrollLeft: number): void;
|