@visactor/vtable-calendar 1.13.3-alpha.5 → 1.13.3-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.
@@ -45498,13 +45498,15 @@
45498
45498
  })(candCol, right);
45499
45499
  }
45500
45500
  function getTargetRowAt(absoluteY, _this) {
45501
+ var _a;
45501
45502
  if (0 === absoluteY) return {
45502
45503
  top: 0,
45503
45504
  row: 0,
45504
45505
  bottom: 0,
45505
45506
  height: 0
45506
45507
  };
45507
- const candRow = computeTargetRowByY(absoluteY, _this),
45508
+ const floorOrRound = !0 === (null === (_a = _this.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? Math.floor : Math.round,
45509
+ candRow = computeTargetRowByY(absoluteY, _this),
45508
45510
  bottom = _this.getRowsHeight(0, candRow);
45509
45511
  return absoluteY >= bottom ? ((startRow, startBottom) => {
45510
45512
  let top = startBottom - _this.getRowHeight(startRow);
@@ -45514,7 +45516,7 @@
45514
45516
  for (let row = startRow; row < rowCount; row++) {
45515
45517
  const height = _this.getRowHeight(row),
45516
45518
  bottom = top + height;
45517
- if (Math.round(top) <= Math.round(absoluteY) && Math.round(absoluteY) < Math.round(bottom)) return {
45519
+ if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) return {
45518
45520
  top: top,
45519
45521
  row: row,
45520
45522
  bottom: bottom,
@@ -45528,7 +45530,7 @@
45528
45530
  for (let row = startRow; row >= 0; row--) {
45529
45531
  const height = _this.getRowHeight(row),
45530
45532
  top = bottom - height;
45531
- if (Math.round(top) <= Math.round(absoluteY) && Math.round(absoluteY) < Math.round(bottom)) return {
45533
+ if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) return {
45532
45534
  top: top,
45533
45535
  row: row,
45534
45536
  bottom: bottom,
@@ -46372,7 +46374,7 @@
46372
46374
  constructor(container) {
46373
46375
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
46374
46376
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46375
- if (super(), this.showFrozenIcon = !0, this.version = "1.13.3-alpha.5", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
46377
+ if (super(), this.showFrozenIcon = !0, this.version = "1.13.3-alpha.7", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
46376
46378
  const {
46377
46379
  frozenColCount = 0,
46378
46380
  frozenRowCount: frozenRowCount,