costy-plus 1.1.41-0 → 1.1.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.
- package/dist/es/src/CommonWaveFormQxc/index.vue_vue_type_script_lang.js +76 -73
- package/dist/es/src/CommonWaveFormQxc/method.d.ts +2 -0
- package/dist/es/src/CommonWaveFormQxc/method.js +482 -446
- package/dist/es/src/MeasuringRuler/index.vue.d.ts +1 -0
- package/dist/es/src/MeasuringRuler/index.vue_vue_type_script_lang.js +32 -29
- package/dist/es/src/MeasuringRulerMore/index.vue.d.ts +1 -0
- package/dist/es/src/MeasuringRulerMore/index.vue_vue_type_script_lang.js +8 -5
- package/dist/es/types/global.d.ts +12 -1
- package/dist/lib/src/CommonWaveFormQxc/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/CommonWaveFormQxc/method.d.ts +2 -0
- package/dist/lib/src/CommonWaveFormQxc/method.js +1 -1
- package/dist/lib/src/MeasuringRuler/index.vue.d.ts +1 -0
- package/dist/lib/src/MeasuringRuler/index.vue_vue_type_script_lang.js +2 -2
- package/dist/lib/src/MeasuringRulerMore/index.vue.d.ts +1 -0
- package/dist/lib/src/MeasuringRulerMore/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/types/global.d.ts +12 -1
- package/package.json +1 -1
|
@@ -1,71 +1,74 @@
|
|
|
1
1
|
import "./style/index.css";
|
|
2
2
|
import "vue";
|
|
3
|
-
import
|
|
3
|
+
import h, { 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
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
var
|
|
13
|
-
for (var
|
|
14
|
-
(
|
|
15
|
-
return
|
|
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 w 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
|
+
import g from "../MagnifierWave/index.js";
|
|
9
|
+
import c from "../ParallelRuler/index2.js";
|
|
10
|
+
import p from "../BackgroundGrid/index2.js";
|
|
11
|
+
import f from "./method.js";
|
|
12
|
+
var _ = Object.defineProperty, F = Object.getOwnPropertyDescriptor, e = (o, a, n, r) => {
|
|
13
|
+
for (var s = r > 1 ? void 0 : r ? F(a, n) : a, l = o.length - 1, u; l >= 0; l--)
|
|
14
|
+
(u = o[l]) && (s = (r ? u(a, n, s) : u(s)) || s);
|
|
15
|
+
return r && s && _(a, n, s), s;
|
|
16
16
|
};
|
|
17
|
-
let
|
|
17
|
+
let t = class extends m(f) {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments), this.repaintTimer = Object.freeze(null);
|
|
20
20
|
}
|
|
21
21
|
watchVuescrollConfig() {
|
|
22
|
-
this.repaint();
|
|
22
|
+
window.global_tools_recordLogs({ title: "test_time watchVuescrollConfig", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
|
|
23
23
|
}
|
|
24
24
|
watchAnalyseValues() {
|
|
25
|
-
this.nearestHeartInfo = {
|
|
25
|
+
window.global_tools_recordLogs({ title: "test_time watchAnalyseValues", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.nearestHeartInfo = {
|
|
26
26
|
analyseValue: null,
|
|
27
27
|
insertInfo: null
|
|
28
28
|
}, this.repaint();
|
|
29
29
|
}
|
|
30
30
|
watchsingleModeConfig() {
|
|
31
|
-
this.repaint();
|
|
31
|
+
window.global_tools_recordLogs({ title: "test_time watchsingleModeConfig", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
|
|
32
32
|
}
|
|
33
33
|
watchWaveConfigs() {
|
|
34
|
-
this.repaint();
|
|
34
|
+
window.global_tools_recordLogs({ title: "test_time watchWaveConfigs", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
|
|
35
35
|
}
|
|
36
36
|
watchWaveLists() {
|
|
37
|
-
this.repaint(!1);
|
|
37
|
+
window.global_tools_recordLogs({ title: "test_time watchWaveLists", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint(!1);
|
|
38
38
|
}
|
|
39
39
|
watchLeadHeadConfig() {
|
|
40
|
-
var
|
|
41
|
-
(
|
|
40
|
+
var o, a;
|
|
41
|
+
window.global_tools_recordLogs({ title: "test_time watchLeadHeadConfig", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), (o = this.leadHeadGroup) == null || o.removeAll(), (a = this.sceneIns) == null || a.remove(this.leadHeadGroup), this.drawLeadHead();
|
|
42
42
|
}
|
|
43
43
|
watchLeadModel() {
|
|
44
|
-
this.repaint();
|
|
44
|
+
window.global_tools_recordLogs({ title: "test_time watchLeadModel", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
|
|
45
45
|
}
|
|
46
46
|
watchWidth() {
|
|
47
|
-
this.repaint();
|
|
47
|
+
window.global_tools_recordLogs({ title: "test_time watchWidth", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
|
|
48
48
|
}
|
|
49
49
|
watchHeight() {
|
|
50
|
-
this.repaint();
|
|
50
|
+
window.global_tools_recordLogs({ title: "test_time watchHeight", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
|
|
51
51
|
}
|
|
52
52
|
watchLongLeadConfig() {
|
|
53
|
-
var
|
|
54
|
-
(
|
|
53
|
+
var o;
|
|
54
|
+
window.global_tools_recordLogs({ title: "test_time watchLongLeadConfig", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), (o = this.sceneIns) == null || o.clear(), this.init();
|
|
55
55
|
}
|
|
56
56
|
watchPosStart() {
|
|
57
|
-
this.registPostStart();
|
|
57
|
+
window.global_tools_recordLogs({ title: "test_time watchPosStart", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.registPostStart();
|
|
58
58
|
}
|
|
59
59
|
destroyed() {
|
|
60
60
|
this.repaintTimer && clearTimeout(this.repaintTimer);
|
|
61
61
|
}
|
|
62
|
-
repaint(
|
|
63
|
-
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
64
|
-
var
|
|
65
|
-
|
|
62
|
+
repaint(o = !0) {
|
|
63
|
+
window.global_tools_recordLogs({ title: "test_time repaint", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}`, type: "info" }), this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
64
|
+
var r, s;
|
|
65
|
+
const a = Date.now();
|
|
66
|
+
o && ((r = this.sceneIns) == null || r.clear(), (s = this.sceneIns) == null || s.resize({
|
|
66
67
|
width: this.canvasContainer.width,
|
|
67
68
|
height: this.canvasContainer.height
|
|
68
|
-
}), this.initCreatedConfig()), this.combinationDrawing(
|
|
69
|
+
}), this.initCreatedConfig()), this.combinationDrawing(o);
|
|
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" });
|
|
69
72
|
}, 200);
|
|
70
73
|
}
|
|
71
74
|
created() {
|
|
@@ -75,51 +78,51 @@ let e = class extends c(w) {
|
|
|
75
78
|
this.init();
|
|
76
79
|
}
|
|
77
80
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
],
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
],
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
],
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
],
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
],
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
],
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
],
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
],
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
],
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
],
|
|
111
|
-
|
|
112
|
-
|
|
81
|
+
e([
|
|
82
|
+
i("vuescrollConfig", { deep: !0 })
|
|
83
|
+
], t.prototype, "watchVuescrollConfig", 1);
|
|
84
|
+
e([
|
|
85
|
+
i("analyseValues", { deep: !0 })
|
|
86
|
+
], t.prototype, "watchAnalyseValues", 1);
|
|
87
|
+
e([
|
|
88
|
+
i("singleModeConfig", { deep: !0 })
|
|
89
|
+
], t.prototype, "watchsingleModeConfig", 1);
|
|
90
|
+
e([
|
|
91
|
+
i("waveConfigs", { deep: !0 })
|
|
92
|
+
], t.prototype, "watchWaveConfigs", 1);
|
|
93
|
+
e([
|
|
94
|
+
i("waveLists", { deep: !0 })
|
|
95
|
+
], t.prototype, "watchWaveLists", 1);
|
|
96
|
+
e([
|
|
97
|
+
i("leadHeadConfig", { deep: !0 })
|
|
98
|
+
], t.prototype, "watchLeadHeadConfig", 1);
|
|
99
|
+
e([
|
|
100
|
+
i("leadModel", { deep: !0 })
|
|
101
|
+
], t.prototype, "watchLeadModel", 1);
|
|
102
|
+
e([
|
|
103
|
+
i("width")
|
|
104
|
+
], t.prototype, "watchWidth", 1);
|
|
105
|
+
e([
|
|
106
|
+
i("height")
|
|
107
|
+
], t.prototype, "watchHeight", 1);
|
|
108
|
+
e([
|
|
109
|
+
i("longLeadConfig", { deep: !0 })
|
|
110
|
+
], t.prototype, "watchLongLeadConfig", 1);
|
|
111
|
+
e([
|
|
112
|
+
i("posStart")
|
|
113
|
+
], t.prototype, "watchPosStart", 1);
|
|
114
|
+
t = e([
|
|
115
|
+
h({
|
|
113
116
|
name: "CommonWaveForm",
|
|
114
117
|
components: {
|
|
115
|
-
vueScroll:
|
|
116
|
-
MXBackgroundGrid:
|
|
117
|
-
MXMeasuringRuler:
|
|
118
|
-
MXParallelRuler:
|
|
119
|
-
MXMagnifierWave:
|
|
118
|
+
vueScroll: w,
|
|
119
|
+
MXBackgroundGrid: p,
|
|
120
|
+
MXMeasuringRuler: d,
|
|
121
|
+
MXParallelRuler: c,
|
|
122
|
+
MXMagnifierWave: g
|
|
120
123
|
}
|
|
121
124
|
})
|
|
122
|
-
],
|
|
125
|
+
], t);
|
|
123
126
|
export {
|
|
124
|
-
|
|
127
|
+
t as default
|
|
125
128
|
};
|
|
@@ -156,6 +156,8 @@ export default class Methods extends Vue {
|
|
|
156
156
|
/** 场景画图 mouseDown */
|
|
157
157
|
protected sceneIsMouseDown: Readonly<boolean>;
|
|
158
158
|
protected sceneIsMouseDownX: number;
|
|
159
|
+
/** 格式化时间戳为可读格式 20260618-14:39:36 */
|
|
160
|
+
protected formatNow(timestamp?: number): string;
|
|
159
161
|
/** 实际画布容器大小 */
|
|
160
162
|
protected get canvasContainer(): {
|
|
161
163
|
width: number;
|