@visactor/vtable-calendar 1.22.13-alpha.5 → 1.22.13-alpha.7

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.
@@ -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
  }
@@ -56407,7 +56407,7 @@
56407
56407
  }
56408
56408
  constructor(container, options = {}) {
56409
56409
  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.5", 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");
56410
+ if (super(), this.showFrozenIcon = !0, this.version = "1.22.13-alpha.7", 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
56411
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
56412
56412
  options: options,
56413
56413
  container: container