costy-plus 1.1.48-0 → 1.1.50-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 +8 -8
- package/dist/es/src/CommonWaveFormQxc/method.d.ts +12 -0
- package/dist/es/src/CommonWaveFormQxc/method.js +214 -182
- package/dist/lib/src/CommonWaveFormQxc/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/CommonWaveFormQxc/method.d.ts +12 -0
- package/dist/lib/src/CommonWaveFormQxc/method.js +1 -1
- package/package.json +1 -1
|
@@ -9,17 +9,17 @@ 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 v = Object.defineProperty, C = Object.getOwnPropertyDescriptor, r = (e, a,
|
|
13
|
-
for (var o =
|
|
14
|
-
(l = e[h]) && (o = (
|
|
15
|
-
return
|
|
12
|
+
var v = Object.defineProperty, C = Object.getOwnPropertyDescriptor, r = (e, a, n, s) => {
|
|
13
|
+
for (var o = s > 1 ? void 0 : s ? C(a, n) : a, h = e.length - 1, l; h >= 0; h--)
|
|
14
|
+
(l = e[h]) && (o = (s ? l(a, n, o) : l(o)) || o);
|
|
15
|
+
return s && o && v(a, n, o), o;
|
|
16
16
|
};
|
|
17
17
|
let t = class extends m(w) {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments), this.repaintTimer = null, this.refreshFrame = null;
|
|
20
20
|
}
|
|
21
21
|
watchVuescrollConfig() {
|
|
22
|
-
this.repaint();
|
|
22
|
+
this.repaint(), this.$nextTick(() => this.bindScrollEnd());
|
|
23
23
|
}
|
|
24
24
|
watchAnalyseValues() {
|
|
25
25
|
this.nearestHeartInfo = {
|
|
@@ -67,8 +67,8 @@ let t = class extends m(w) {
|
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
this.repaintTimer && clearTimeout(this.repaintTimer), this.repaintTimer = setTimeout(() => {
|
|
70
|
-
var a,
|
|
71
|
-
this.repaintTimer = null, e && ((a = this.sceneIns) == null || a.clear(), (
|
|
70
|
+
var a, n;
|
|
71
|
+
this.repaintTimer = null, e && ((a = this.sceneIns) == null || a.clear(), (n = this.sceneIns) == null || n.resize({
|
|
72
72
|
width: this.canvasContainer.width,
|
|
73
73
|
height: this.canvasContainer.height
|
|
74
74
|
}), this.initCreatedConfig()), this.combinationDrawing(e);
|
|
@@ -78,7 +78,7 @@ let t = class extends m(w) {
|
|
|
78
78
|
this.initCreatedConfig();
|
|
79
79
|
}
|
|
80
80
|
mounted() {
|
|
81
|
-
this.init();
|
|
81
|
+
this.init(), this.$nextTick(() => this.bindScrollEnd());
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
r([
|
|
@@ -160,6 +160,13 @@ export default class Methods extends Vue {
|
|
|
160
160
|
protected sceneIsMouseDownX: number;
|
|
161
161
|
protected lastScrollPointIdx: number;
|
|
162
162
|
protected lastScrollLeft: number;
|
|
163
|
+
protected latestScrollPointIdx: {
|
|
164
|
+
slidIdxs: number;
|
|
165
|
+
scrollLeft: number;
|
|
166
|
+
} | null;
|
|
167
|
+
protected scrollEndTarget: HTMLElement | null;
|
|
168
|
+
protected scrollEndTimer: ReturnType<typeof setTimeout> | null;
|
|
169
|
+
protected usesScrollEnd: boolean;
|
|
163
170
|
/** 滚动到未加载区间时暂存目标,数据到齐后再切换视图 */
|
|
164
171
|
protected pendingScrollPointIdx: number | null;
|
|
165
172
|
/** 实际画布容器大小 */
|
|
@@ -286,6 +293,11 @@ export default class Methods extends Vue {
|
|
|
286
293
|
protected onContextmenu(e: ElementEvent, type: 'single' | 'rowAndCol' | 'add'): void;
|
|
287
294
|
/** 波形点击事件,双击放大波形 */
|
|
288
295
|
protected onDbClickWaveFrom(e: ElementEvent, type: 'single' | 'rowAndCol' | 'add'): void;
|
|
296
|
+
protected getScrollEndTarget(): HTMLElement | null;
|
|
297
|
+
protected emitScrollPointIdx(): void;
|
|
298
|
+
protected scheduleScrollEndFallback(): void;
|
|
299
|
+
protected handleScrollEnd: () => void;
|
|
300
|
+
protected bindScrollEnd(): void;
|
|
289
301
|
/** 原生滚动条事件 */
|
|
290
302
|
protected nativeScrollFunc(event: Event): void;
|
|
291
303
|
/** 自定义滚动事件监听 */
|