@visactor/vtable-calendar 1.22.13-alpha.6 → 1.22.13-alpha.8
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/vtable-calendar.js
CHANGED
|
@@ -56284,11 +56284,11 @@
|
|
|
56284
56284
|
onUpdate(end, ratio, out) {
|
|
56285
56285
|
if (this.from.x !== this.to.x) {
|
|
56286
56286
|
const x = end ? this.to.x : this.from.x + Math.floor((this.to.x - this.from.x) * ratio);
|
|
56287
|
-
this.params.table.scrollLeft = x;
|
|
56287
|
+
this.params.table.scrollLeft = x, 1 === ratio && -1 !== this.to.targetCol && this.params.table.scrollToCol(this.to.targetCol, !1);
|
|
56288
56288
|
}
|
|
56289
56289
|
if (this.from.y !== this.to.y) {
|
|
56290
56290
|
const y = end ? this.to.y : this.from.y + Math.floor((this.to.y - this.from.y) * ratio);
|
|
56291
|
-
this.params.table.scrollTop = y;
|
|
56291
|
+
this.params.table.scrollTop = y, 1 === ratio && -1 !== this.to.targetRow && this.params.table.scrollToRow(this.to.targetRow, !1);
|
|
56292
56292
|
}
|
|
56293
56293
|
}
|
|
56294
56294
|
}
|
|
@@ -56320,7 +56320,9 @@
|
|
|
56320
56320
|
colDecimal && (left += colDecimal * cellRect.width), rowDecimal && (top += rowDecimal * cellRect.height);
|
|
56321
56321
|
const to = {
|
|
56322
56322
|
x: isNumber$2(col) ? left - this.table.getFrozenColsWidth() : this.table.scrollLeft,
|
|
56323
|
-
y: isNumber$2(row) ? top - this.table.getFrozenRowsHeight() : this.table.scrollTop
|
|
56323
|
+
y: isNumber$2(row) ? top - this.table.getFrozenRowsHeight() : this.table.scrollTop,
|
|
56324
|
+
targetCol: null != colInt ? colInt : -1,
|
|
56325
|
+
targetRow: null != rowInt ? rowInt : -1
|
|
56324
56326
|
},
|
|
56325
56327
|
duration = isBoolean$2(animationOption) ? animationOption ? 3e3 : 0 : null !== (_a = null == animationOption ? void 0 : animationOption.duration) && void 0 !== _a ? _a : 3e3,
|
|
56326
56328
|
easing = isBoolean$2(animationOption) ? animationOption ? "linear" : "" : null !== (_b = null == animationOption ? void 0 : animationOption.easing) && void 0 !== _b ? _b : "linear";
|
|
@@ -56407,7 +56409,7 @@
|
|
|
56407
56409
|
}
|
|
56408
56410
|
constructor(container, options = {}) {
|
|
56409
56411
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
56410
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.13-alpha.
|
|
56412
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.13-alpha.8", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
56411
56413
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56412
56414
|
options: options,
|
|
56413
56415
|
container: container
|
|
@@ -58525,7 +58527,7 @@
|
|
|
58525
58527
|
}
|
|
58526
58528
|
if (isValid$1(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
|
|
58527
58529
|
const frozenHeight = this.getFrozenRowsHeight(),
|
|
58528
|
-
top = this.
|
|
58530
|
+
top = this.internalProps._rowHeightsMap.getSumInRange(0, cellAddr.row - 1);
|
|
58529
58531
|
this.scrollTop = Math.min(top - frozenHeight, this.getAllRowsHeight() - drawRange.height);
|
|
58530
58532
|
}
|
|
58531
58533
|
this.render();
|