costy-plus 1.1.44-0 → 1.1.46-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,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: any;
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 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";
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 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;
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 m(f) {
17
+ let t = class extends c(w) {
18
18
  constructor() {
19
- super(...arguments), this.repaintTimer = Object.freeze(null);
19
+ super(...arguments), this.repaintTimer = null;
20
20
  }
21
21
  watchVuescrollConfig() {
22
- window.global_tools_recordLogs({ title: "test_time watchVuescrollConfig", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
22
+ this.repaint();
23
23
  }
24
24
  watchAnalyseValues() {
25
- window.global_tools_recordLogs({ title: "test_time watchAnalyseValues", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.nearestHeartInfo = {
25
+ this.nearestHeartInfo = {
26
26
  analyseValue: null,
27
27
  insertInfo: null
28
28
  }, this.repaint();
29
29
  }
30
30
  watchsingleModeConfig() {
31
- window.global_tools_recordLogs({ title: "test_time watchsingleModeConfig", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
31
+ this.repaint();
32
32
  }
33
33
  watchWaveConfigs() {
34
- window.global_tools_recordLogs({ title: "test_time watchWaveConfigs", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
34
+ this.repaint();
35
35
  }
36
36
  watchWaveLists() {
37
- window.global_tools_recordLogs({ title: "test_time watchWaveLists", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint(!1);
37
+ this.repaint(!1);
38
38
  }
39
39
  watchLeadHeadConfig() {
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();
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
- window.global_tools_recordLogs({ title: "test_time watchLeadModel", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
44
+ this.repaint();
45
45
  }
46
46
  watchWidth() {
47
- window.global_tools_recordLogs({ title: "test_time watchWidth", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
47
+ this.repaint();
48
48
  }
49
49
  watchHeight() {
50
- window.global_tools_recordLogs({ title: "test_time watchHeight", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.repaint();
50
+ this.repaint();
51
51
  }
52
52
  watchLongLeadConfig() {
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();
53
+ var e;
54
+ (e = this.sceneIns) == null || e.clear(), this.init();
55
55
  }
56
56
  watchPosStart() {
57
- window.global_tools_recordLogs({ title: "test_time watchPosStart", msg: `\u5F00\u59CB\u65F6\u95F4: ${this.formatNow()}` }), this.registPostStart();
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(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({
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(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" });
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
- e([
82
- i("vuescrollConfig", { deep: !0 })
82
+ i([
83
+ r("vuescrollConfig", { deep: !0 })
83
84
  ], t.prototype, "watchVuescrollConfig", 1);
84
- e([
85
- i("analyseValues", { deep: !0 })
85
+ i([
86
+ r("analyseValues", { deep: !0 })
86
87
  ], t.prototype, "watchAnalyseValues", 1);
87
- e([
88
- i("singleModeConfig", { deep: !0 })
88
+ i([
89
+ r("singleModeConfig", { deep: !0 })
89
90
  ], t.prototype, "watchsingleModeConfig", 1);
90
- e([
91
- i("waveConfigs", { deep: !0 })
91
+ i([
92
+ r("waveConfigs", { deep: !0 })
92
93
  ], t.prototype, "watchWaveConfigs", 1);
93
- e([
94
- i("waveLists", { deep: !0 })
94
+ i([
95
+ r("waveLists", { deep: !0 })
95
96
  ], t.prototype, "watchWaveLists", 1);
96
- e([
97
- i("leadHeadConfig", { deep: !0 })
97
+ i([
98
+ r("leadHeadConfig", { deep: !0 })
98
99
  ], t.prototype, "watchLeadHeadConfig", 1);
99
- e([
100
- i("leadModel", { deep: !0 })
100
+ i([
101
+ r("leadModel", { deep: !0 })
101
102
  ], t.prototype, "watchLeadModel", 1);
102
- e([
103
- i("width")
103
+ i([
104
+ r("width")
104
105
  ], t.prototype, "watchWidth", 1);
105
- e([
106
- i("height")
106
+ i([
107
+ r("height")
107
108
  ], t.prototype, "watchHeight", 1);
108
- e([
109
- i("longLeadConfig", { deep: !0 })
109
+ i([
110
+ r("longLeadConfig", { deep: !0 })
110
111
  ], t.prototype, "watchLongLeadConfig", 1);
111
- e([
112
- i("posStart")
112
+ i([
113
+ r("posStart")
113
114
  ], t.prototype, "watchPosStart", 1);
114
- t = e([
115
- h({
115
+ t = i([
116
+ l({
116
117
  name: "CommonWaveForm",
117
118
  components: {
118
- vueScroll: w,
119
- MXBackgroundGrid: p,
120
- MXMeasuringRuler: d,
121
- MXParallelRuler: c,
122
- MXMagnifierWave: g
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
- /** 格式化时间戳为可读格式 YYYY-MM-DD-HH:mm:ss.SSS */
160
- protected formatNow(timestamp?: number): string;
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: WheelEvent): void;
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;