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.
@@ -1,71 +1,74 @@
1
1
  import "./style/index.css";
2
2
  import "vue";
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";
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 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 f from "../MagnifierWave/index.js";
9
- import u 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, t = (i, a, s, n) => {
13
- for (var o = n > 1 ? void 0 : n ? v(a, s) : a, h = i.length - 1, p; h >= 0; h--)
14
- (p = i[h]) && (o = (n ? p(a, s, o) : p(o)) || o);
15
- return n && o && C(a, s, o), o;
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 e = class extends c(w) {
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 i, a;
41
- (i = this.leadHeadGroup) == null || i.removeAll(), (a = this.sceneIns) == null || a.remove(this.leadHeadGroup), this.drawLeadHead();
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 i;
54
- (i = this.sceneIns) == null || i.clear(), this.init();
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(i = !0) {
63
- this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
64
- var a, s;
65
- i && ((a = this.sceneIns) == null || a.clear(), (s = this.sceneIns) == null || s.resize({
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(i);
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
- t([
79
- r("vuescrollConfig", { deep: !0 })
80
- ], e.prototype, "watchVuescrollConfig", 1);
81
- t([
82
- r("analyseValues", { deep: !0 })
83
- ], e.prototype, "watchAnalyseValues", 1);
84
- t([
85
- r("singleModeConfig", { deep: !0 })
86
- ], e.prototype, "watchsingleModeConfig", 1);
87
- t([
88
- r("waveConfigs", { deep: !0 })
89
- ], e.prototype, "watchWaveConfigs", 1);
90
- t([
91
- r("waveLists", { deep: !0 })
92
- ], e.prototype, "watchWaveLists", 1);
93
- t([
94
- r("leadHeadConfig", { deep: !0 })
95
- ], e.prototype, "watchLeadHeadConfig", 1);
96
- t([
97
- r("leadModel", { deep: !0 })
98
- ], e.prototype, "watchLeadModel", 1);
99
- t([
100
- r("width")
101
- ], e.prototype, "watchWidth", 1);
102
- t([
103
- r("height")
104
- ], e.prototype, "watchHeight", 1);
105
- t([
106
- r("longLeadConfig", { deep: !0 })
107
- ], e.prototype, "watchLongLeadConfig", 1);
108
- t([
109
- r("posStart")
110
- ], e.prototype, "watchPosStart", 1);
111
- e = t([
112
- l({
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: d,
116
- MXBackgroundGrid: g,
117
- MXMeasuringRuler: m,
118
- MXParallelRuler: u,
119
- MXMagnifierWave: f
118
+ vueScroll: w,
119
+ MXBackgroundGrid: p,
120
+ MXMeasuringRuler: d,
121
+ MXParallelRuler: c,
122
+ MXMagnifierWave: g
120
123
  }
121
124
  })
122
- ], e);
125
+ ], t);
123
126
  export {
124
- e as default
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;