@visactor/vtable-calendar 1.26.2 → 1.26.3-alpha.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/vtable-calendar.js +74 -78
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +2 -2
package/dist/vtable-calendar.js
CHANGED
|
@@ -43249,6 +43249,17 @@
|
|
|
43249
43249
|
}
|
|
43250
43250
|
}
|
|
43251
43251
|
|
|
43252
|
+
function getBodyHorizontalScrollRange(table) {
|
|
43253
|
+
var _a, _b, _c, _d;
|
|
43254
|
+
const totalWidth = table.getAllColsWidth(),
|
|
43255
|
+
frozenColsWidth = table.getFrozenColsWidth(),
|
|
43256
|
+
rightFrozenColsWidth = table.getRightFrozenColsWidth(),
|
|
43257
|
+
frozenColsContentWidth = null !== (_b = null === (_a = table.getFrozenColsContentWidth) || void 0 === _a ? void 0 : _a.call(table)) && void 0 !== _b ? _b : frozenColsWidth,
|
|
43258
|
+
rightFrozenColsContentWidth = null !== (_d = null === (_c = table.getRightFrozenColsContentWidth) || void 0 === _c ? void 0 : _c.call(table)) && void 0 !== _d ? _d : rightFrozenColsWidth,
|
|
43259
|
+
bodyViewportWidth = table.tableNoFrameWidth - frozenColsWidth - rightFrozenColsWidth,
|
|
43260
|
+
bodyContentWidth = totalWidth - frozenColsContentWidth - rightFrozenColsContentWidth;
|
|
43261
|
+
return Math.max(0, bodyContentWidth - bodyViewportWidth);
|
|
43262
|
+
}
|
|
43252
43263
|
function getColX(col, table, isRightFrozen) {
|
|
43253
43264
|
var _a, _b, _c, _d, _e, _f;
|
|
43254
43265
|
if (isRightFrozen) return Math.min(table.tableNoFrameWidth, table.getAllColsWidth()) - table.getColsWidth(col, table.colCount - 1) + (null !== (_b = null === (_a = table.getRightFrozenColsScrollLeft) || void 0 === _a ? void 0 : _a.call(table)) && void 0 !== _b ? _b : 0);
|
|
@@ -43541,17 +43552,18 @@
|
|
|
43541
43552
|
rightFrozenColsWidth = this.table.getRightFrozenColsWidth(),
|
|
43542
43553
|
rightFrozenColsContentWidth = null !== (_m = null === (_l = (_k = this.table).getRightFrozenColsContentWidth) || void 0 === _l ? void 0 : _l.call(_k)) && void 0 !== _m ? _m : rightFrozenColsWidth,
|
|
43543
43554
|
hoverOn = this.table.theme.scrollStyle.hoverOn,
|
|
43544
|
-
sizeTolerance = (null === (_o = this.table.options.customConfig) || void 0 === _o ? void 0 : _o._disableColumnAndRowSizeRound) ? 1 : 0
|
|
43545
|
-
|
|
43546
|
-
|
|
43547
|
-
|
|
43548
|
-
|
|
43555
|
+
sizeTolerance = (null === (_o = this.table.options.customConfig) || void 0 === _o ? void 0 : _o._disableColumnAndRowSizeRound) ? 1 : 0,
|
|
43556
|
+
bodyScrollRange = getBodyHorizontalScrollRange(this.table),
|
|
43557
|
+
y = Math.min(tableHeight, totalHeight);
|
|
43558
|
+
let attrY = 0;
|
|
43559
|
+
attrY = this.table.theme.scrollStyle.barToSide ? this.table.tableNoFrameHeight - (hoverOn ? width : -this.table.scenegraph.tableGroup.attribute.y) + this.table.tableY : y - (hoverOn ? width : -this.table.scenegraph.tableGroup.attribute.y);
|
|
43560
|
+
const ignoreFrozenCols = null !== (_q = null === (_p = this.table.theme.scrollStyle) || void 0 === _p ? void 0 : _p.ignoreFrozenCols) && void 0 !== _q && _q;
|
|
43561
|
+
if (bodyScrollRange > sizeTolerance) {
|
|
43562
|
+
const bodyViewportWidth = tableWidth - frozenColsWidth - rightFrozenColsWidth,
|
|
43563
|
+
bodyContentWidth = bodyViewportWidth + bodyScrollRange,
|
|
43549
43564
|
rangeEnd = bodyContentWidth > 0 ? Math.max(.05, bodyViewportWidth / bodyContentWidth) : 1;
|
|
43550
|
-
let attrY = 0;
|
|
43551
|
-
attrY = this.table.theme.scrollStyle.barToSide ? this.table.tableNoFrameHeight - (hoverOn ? width : -this.table.scenegraph.tableGroup.attribute.y) + this.table.tableY : y - (hoverOn ? width : -this.table.scenegraph.tableGroup.attribute.y);
|
|
43552
43565
|
let hScrollBarx = frozenColsWidth + (hoverOn ? 0 : this.table.scenegraph.tableGroup.attribute.x),
|
|
43553
43566
|
hScrollBarWidth = tableWidth - frozenColsWidth - rightFrozenColsWidth;
|
|
43554
|
-
const ignoreFrozenCols = null !== (_q = null === (_p = this.table.theme.scrollStyle) || void 0 === _p ? void 0 : _p.ignoreFrozenCols) && void 0 !== _q && _q;
|
|
43555
43567
|
ignoreFrozenCols ? (hScrollBarx = hoverOn ? 0 : this.table.scenegraph.tableGroup.attribute.x, hScrollBarWidth = tableWidth) : (hScrollBarx = frozenColsWidth + (hoverOn ? 0 : this.table.scenegraph.tableGroup.attribute.x), hScrollBarWidth = tableWidth - frozenColsWidth - rightFrozenColsWidth), this.hScrollBar.setAttributes({
|
|
43556
43568
|
x: hScrollBarx,
|
|
43557
43569
|
y: attrY,
|
|
@@ -43564,61 +43576,51 @@
|
|
|
43564
43576
|
x: bounds.x1,
|
|
43565
43577
|
y: bounds.y1
|
|
43566
43578
|
}, "always" === horizontalVisible && this.hScrollBar.showAll();
|
|
43567
|
-
const frozenScrollable = this.table.options.scrollFrozenCols && this.table.getFrozenColsOffset() > 0;
|
|
43568
|
-
if (!ignoreFrozenCols && frozenScrollable) {
|
|
43569
|
-
const frozenRangeEnd = Math.max(.05, frozenColsWidth / frozenColsContentWidth),
|
|
43570
|
-
x = hoverOn ? 0 : this.table.scenegraph.tableGroup.attribute.x;
|
|
43571
|
-
this.frozenHScrollBar.setAttributes({
|
|
43572
|
-
x: x,
|
|
43573
|
-
y: attrY,
|
|
43574
|
-
width: frozenColsWidth,
|
|
43575
|
-
range: [0, frozenRangeEnd],
|
|
43576
|
-
visible: "always" === horizontalVisible
|
|
43577
|
-
});
|
|
43578
|
-
const bounds = this.frozenHScrollBar.AABBBounds && this.frozenHScrollBar.globalAABBBounds;
|
|
43579
|
-
this.frozenHScrollBar._viewPosition = {
|
|
43580
|
-
x: bounds.x1,
|
|
43581
|
-
y: bounds.y1
|
|
43582
|
-
}, "always" === horizontalVisible && this.frozenHScrollBar.showAll();
|
|
43583
|
-
} else this.frozenHScrollBar.setAttributes({
|
|
43584
|
-
x: 2 * -this.table.tableNoFrameWidth,
|
|
43585
|
-
y: 2 * -this.table.tableNoFrameHeight,
|
|
43586
|
-
width: 0,
|
|
43587
|
-
visible: !1
|
|
43588
|
-
});
|
|
43589
|
-
const rightFrozenScrollable = this.table.options.scrollRightFrozenCols && this.table.getRightFrozenColsOffset() > 0;
|
|
43590
|
-
if (!ignoreFrozenCols && rightFrozenScrollable) {
|
|
43591
|
-
const rightFrozenRangeEnd = Math.max(.05, rightFrozenColsWidth / rightFrozenColsContentWidth),
|
|
43592
|
-
x = tableWidth - rightFrozenColsWidth + (hoverOn ? 0 : this.table.scenegraph.tableGroup.attribute.x);
|
|
43593
|
-
this.rightFrozenHScrollBar.setAttributes({
|
|
43594
|
-
x: x,
|
|
43595
|
-
y: attrY,
|
|
43596
|
-
width: rightFrozenColsWidth,
|
|
43597
|
-
range: [0, rightFrozenRangeEnd],
|
|
43598
|
-
visible: "always" === horizontalVisible
|
|
43599
|
-
});
|
|
43600
|
-
const bounds = this.rightFrozenHScrollBar.AABBBounds && this.rightFrozenHScrollBar.globalAABBBounds;
|
|
43601
|
-
this.rightFrozenHScrollBar._viewPosition = {
|
|
43602
|
-
x: bounds.x1,
|
|
43603
|
-
y: bounds.y1
|
|
43604
|
-
}, "always" === horizontalVisible && this.rightFrozenHScrollBar.showAll();
|
|
43605
|
-
} else this.rightFrozenHScrollBar.setAttributes({
|
|
43606
|
-
x: 2 * -this.table.tableNoFrameWidth,
|
|
43607
|
-
y: 2 * -this.table.tableNoFrameHeight,
|
|
43608
|
-
width: 0,
|
|
43609
|
-
visible: !1
|
|
43610
|
-
});
|
|
43611
43579
|
} else this.hScrollBar.setAttributes({
|
|
43612
43580
|
x: 2 * -this.table.tableNoFrameWidth,
|
|
43613
43581
|
y: 2 * -this.table.tableNoFrameHeight,
|
|
43614
43582
|
width: 0,
|
|
43615
43583
|
visible: !1
|
|
43616
|
-
})
|
|
43584
|
+
});
|
|
43585
|
+
const frozenScrollable = this.table.options.scrollFrozenCols && this.table.getFrozenColsOffset() > 0;
|
|
43586
|
+
if (!ignoreFrozenCols && frozenScrollable) {
|
|
43587
|
+
const frozenRangeEnd = Math.max(.05, frozenColsWidth / frozenColsContentWidth),
|
|
43588
|
+
x = hoverOn ? 0 : this.table.scenegraph.tableGroup.attribute.x;
|
|
43589
|
+
this.frozenHScrollBar.setAttributes({
|
|
43590
|
+
x: x,
|
|
43591
|
+
y: attrY,
|
|
43592
|
+
width: frozenColsWidth,
|
|
43593
|
+
range: [0, frozenRangeEnd],
|
|
43594
|
+
visible: "always" === horizontalVisible
|
|
43595
|
+
});
|
|
43596
|
+
const bounds = this.frozenHScrollBar.AABBBounds && this.frozenHScrollBar.globalAABBBounds;
|
|
43597
|
+
this.frozenHScrollBar._viewPosition = {
|
|
43598
|
+
x: bounds.x1,
|
|
43599
|
+
y: bounds.y1
|
|
43600
|
+
}, "always" === horizontalVisible && this.frozenHScrollBar.showAll();
|
|
43601
|
+
} else this.frozenHScrollBar.setAttributes({
|
|
43617
43602
|
x: 2 * -this.table.tableNoFrameWidth,
|
|
43618
43603
|
y: 2 * -this.table.tableNoFrameHeight,
|
|
43619
43604
|
width: 0,
|
|
43620
43605
|
visible: !1
|
|
43621
|
-
})
|
|
43606
|
+
});
|
|
43607
|
+
const rightFrozenScrollable = this.table.options.scrollRightFrozenCols && this.table.getRightFrozenColsOffset() > 0;
|
|
43608
|
+
if (!ignoreFrozenCols && rightFrozenScrollable) {
|
|
43609
|
+
const rightFrozenRangeEnd = Math.max(.05, rightFrozenColsWidth / rightFrozenColsContentWidth),
|
|
43610
|
+
x = tableWidth - rightFrozenColsWidth + (hoverOn ? 0 : this.table.scenegraph.tableGroup.attribute.x);
|
|
43611
|
+
this.rightFrozenHScrollBar.setAttributes({
|
|
43612
|
+
x: x,
|
|
43613
|
+
y: attrY,
|
|
43614
|
+
width: rightFrozenColsWidth,
|
|
43615
|
+
range: [0, rightFrozenRangeEnd],
|
|
43616
|
+
visible: "always" === horizontalVisible
|
|
43617
|
+
});
|
|
43618
|
+
const bounds = this.rightFrozenHScrollBar.AABBBounds && this.rightFrozenHScrollBar.globalAABBBounds;
|
|
43619
|
+
this.rightFrozenHScrollBar._viewPosition = {
|
|
43620
|
+
x: bounds.x1,
|
|
43621
|
+
y: bounds.y1
|
|
43622
|
+
}, "always" === horizontalVisible && this.rightFrozenHScrollBar.showAll();
|
|
43623
|
+
} else this.rightFrozenHScrollBar.setAttributes({
|
|
43622
43624
|
x: 2 * -this.table.tableNoFrameWidth,
|
|
43623
43625
|
y: 2 * -this.table.tableNoFrameHeight,
|
|
43624
43626
|
width: 0,
|
|
@@ -50171,7 +50173,7 @@
|
|
|
50171
50173
|
setBodyAndColHeaderX(x) {
|
|
50172
50174
|
const firstBodyCol = this.bodyGroup.firstChild;
|
|
50173
50175
|
let lastBodyCol = this.bodyGroup.lastChild;
|
|
50174
|
-
lastBodyCol && "group" !== lastBodyCol.type && (lastBodyCol = lastBodyCol._prev), 0 === x && firstBodyCol && firstBodyCol.col === this.table.frozenColCount && firstBodyCol.attribute.x + x < 0 ? x = -firstBodyCol.attribute.x : lastBodyCol && this.table.tableNoFrameWidth < this.table.getAllColsWidth() && lastBodyCol.col === this.table.colCount - this.table.rightFrozenColCount - 1 && lastBodyCol.attribute.x + lastBodyCol.attribute.width + x < this.table.tableNoFrameWidth - this.table.getFrozenColsWidth() - this.table.getRightFrozenColsWidth() && (x = this.table.tableNoFrameWidth - this.table.getFrozenColsWidth() - this.table.getRightFrozenColsWidth() - lastBodyCol.attribute.x - lastBodyCol.attribute.width), this.table.getFrozenColsWidth() + x !== this.bodyGroup.attribute.x && (this.bodyGroup.setAttribute("x", this.table.getFrozenColsWidth() + x), this.colHeaderGroup.setAttribute("x", this.table.getFrozenColsWidth() + x), this.bodySelectGroup.setAttribute("x", this.bodyGroup.attribute.x), this.colHeaderSelectGroup.setAttribute("x", this.colHeaderGroup.attribute.x), this.rowHeaderSelectGroup.setAttribute("x", this.rowHeaderGroup.attribute.x), this.cornerHeaderSelectGroup.setAttribute("x", this.cornerHeaderGroup.attribute.x), this.table.bottomFrozenRowCount > 0 && (this.bottomFrozenGroup.setAttribute("x", this.table.getFrozenColsWidth() + x), this.bottomFrozenSelectGroup.setAttribute("x", this.bottomFrozenGroup.attribute.x), this.leftBottomCornerSelectGroup.setAttribute("x", this.leftBottomCornerGroup.attribute.x)), this.table.rightFrozenColCount > 0 && (this.rightFrozenSelectGroup.setAttribute("x", this.rightFrozenGroup.attribute.x), this.rightTopCornerSelectGroup.setAttribute("x", this.rightTopCornerGroup.attribute.x)), this.table.rightFrozenColCount > 0 && this.table.bottomFrozenRowCount > 0 && this.rightBottomCornerSelectGroup.setAttribute("x", this.rightBottomCornerGroup.attribute.x), this.updateNextFrame());
|
|
50176
|
+
lastBodyCol && "group" !== lastBodyCol.type && (lastBodyCol = lastBodyCol._prev), 0 === x && firstBodyCol && firstBodyCol.col === this.table.frozenColCount && firstBodyCol.attribute.x + x < 0 ? x = -firstBodyCol.attribute.x : lastBodyCol && this.table.tableNoFrameWidth < this.table.getAllColsWidth() && lastBodyCol.col === this.table.colCount - this.table.rightFrozenColCount - 1 && lastBodyCol.attribute.x + lastBodyCol.attribute.width + x < this.table.tableNoFrameWidth - this.table.getFrozenColsWidth() - this.table.getRightFrozenColsWidth() && (x = this.table.tableNoFrameWidth - this.table.getFrozenColsWidth() - this.table.getRightFrozenColsWidth() - lastBodyCol.attribute.x - lastBodyCol.attribute.width), this.table.options.scrollFrozenCols && x > 0 && (x = 0), this.table.getFrozenColsWidth() + x !== this.bodyGroup.attribute.x && (this.bodyGroup.setAttribute("x", this.table.getFrozenColsWidth() + x), this.colHeaderGroup.setAttribute("x", this.table.getFrozenColsWidth() + x), this.bodySelectGroup.setAttribute("x", this.bodyGroup.attribute.x), this.colHeaderSelectGroup.setAttribute("x", this.colHeaderGroup.attribute.x), this.rowHeaderSelectGroup.setAttribute("x", this.rowHeaderGroup.attribute.x), this.cornerHeaderSelectGroup.setAttribute("x", this.cornerHeaderGroup.attribute.x), this.table.bottomFrozenRowCount > 0 && (this.bottomFrozenGroup.setAttribute("x", this.table.getFrozenColsWidth() + x), this.bottomFrozenSelectGroup.setAttribute("x", this.bottomFrozenGroup.attribute.x), this.leftBottomCornerSelectGroup.setAttribute("x", this.leftBottomCornerGroup.attribute.x)), this.table.rightFrozenColCount > 0 && (this.rightFrozenSelectGroup.setAttribute("x", this.rightFrozenGroup.attribute.x), this.rightTopCornerSelectGroup.setAttribute("x", this.rightTopCornerGroup.attribute.x)), this.table.rightFrozenColCount > 0 && this.table.bottomFrozenRowCount > 0 && this.rightBottomCornerSelectGroup.setAttribute("x", this.rightBottomCornerGroup.attribute.x), this.updateNextFrame());
|
|
50175
50177
|
}
|
|
50176
50178
|
afterScenegraphCreated() {
|
|
50177
50179
|
var _a, _b;
|
|
@@ -50218,11 +50220,11 @@
|
|
|
50218
50220
|
let rowHeaderWidth = 0;
|
|
50219
50221
|
this.rowHeaderGroup.forEachChildrenSkipChild(column => {
|
|
50220
50222
|
rowHeaderWidth += column.attribute.width;
|
|
50221
|
-
}), this.rowHeaderGroup.setAttribute("width", rowHeaderWidth);
|
|
50223
|
+
}), table.options.scrollFrozenCols && (rowHeaderWidth = table.getFrozenColsWidth()), this.rowHeaderGroup.setAttribute("width", rowHeaderWidth);
|
|
50222
50224
|
let cornerHeaderWidth = 0;
|
|
50223
50225
|
this.cornerHeaderGroup.forEachChildrenSkipChild(column => {
|
|
50224
50226
|
cornerHeaderWidth += column.attribute.width;
|
|
50225
|
-
}), this.cornerHeaderGroup.setAttribute("width", cornerHeaderWidth), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width), this.rowHeaderGroup.setAttribute("y", this.cornerHeaderGroup.attribute.height), this.bodyGroup.setAttributes({
|
|
50227
|
+
}), table.options.scrollFrozenCols && (cornerHeaderWidth = table.getFrozenColsWidth()), this.cornerHeaderGroup.setAttribute("width", cornerHeaderWidth), this.colHeaderGroup.setAttribute("x", this.cornerHeaderGroup.attribute.width), this.rowHeaderGroup.setAttribute("y", this.cornerHeaderGroup.attribute.height), this.bodyGroup.setAttributes({
|
|
50226
50228
|
x: this.rowHeaderGroup.attribute.width,
|
|
50227
50229
|
y: this.colHeaderGroup.attribute.height
|
|
50228
50230
|
});
|
|
@@ -52401,12 +52403,9 @@
|
|
|
52401
52403
|
}), oldVerticalBarPos !== this.scroll.verticalBarPos && this.checkVerticalScrollBarEnd();
|
|
52402
52404
|
}
|
|
52403
52405
|
updateHorizontalScrollBar(xRatio) {
|
|
52404
|
-
var _a, _b, _c, _d
|
|
52405
|
-
const
|
|
52406
|
-
|
|
52407
|
-
frozenOffset = null !== (_c = null === (_b = (_a = this.table).getFrozenColsOffset) || void 0 === _b ? void 0 : _b.call(_a)) && void 0 !== _c ? _c : 0,
|
|
52408
|
-
rightFrozenOffset = null !== (_f = null === (_e = (_d = this.table).getRightFrozenColsOffset) || void 0 === _e ? void 0 : _e.call(_d)) && void 0 !== _f ? _f : 0,
|
|
52409
|
-
scrollRange = Math.max(0, totalWidth - this.table.scenegraph.width - frozenOffset - rightFrozenOffset);
|
|
52406
|
+
var _a, _b, _c, _d;
|
|
52407
|
+
const oldHorizontalBarPos = this.scroll.horizontalBarPos,
|
|
52408
|
+
scrollRange = getBodyHorizontalScrollRange(this.table);
|
|
52410
52409
|
let horizontalBarPos = Math.ceil(xRatio * scrollRange);
|
|
52411
52410
|
isValid$1(horizontalBarPos) && !isNaN(horizontalBarPos) || (horizontalBarPos = 0);
|
|
52412
52411
|
const dx = horizontalBarPos - this.table.scenegraph.proxy.deltaX - oldHorizontalBarPos;
|
|
@@ -52414,8 +52413,8 @@
|
|
|
52414
52413
|
event: void 0,
|
|
52415
52414
|
scrollTop: this.scroll.verticalBarPos,
|
|
52416
52415
|
scrollLeft: horizontalBarPos - this.table.scenegraph.proxy.deltaX,
|
|
52417
|
-
scrollHeight: null === (
|
|
52418
|
-
scrollWidth: null === (
|
|
52416
|
+
scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
|
|
52417
|
+
scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
|
|
52419
52418
|
viewHeight: this.table.tableNoFrameHeight,
|
|
52420
52419
|
viewWidth: this.table.tableNoFrameWidth,
|
|
52421
52420
|
scrollDirection: "horizontal",
|
|
@@ -52428,8 +52427,8 @@
|
|
|
52428
52427
|
event: void 0,
|
|
52429
52428
|
scrollTop: this.scroll.verticalBarPos,
|
|
52430
52429
|
scrollLeft: this.scroll.horizontalBarPos,
|
|
52431
|
-
scrollHeight: null === (
|
|
52432
|
-
scrollWidth: null === (
|
|
52430
|
+
scrollHeight: null === (_c = this.table.theme.scrollStyle) || void 0 === _c ? void 0 : _c.width,
|
|
52431
|
+
scrollWidth: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
|
|
52433
52432
|
viewHeight: this.table.tableNoFrameHeight,
|
|
52434
52433
|
viewWidth: this.table.tableNoFrameWidth,
|
|
52435
52434
|
scrollDirection: "horizontal",
|
|
@@ -52481,18 +52480,15 @@
|
|
|
52481
52480
|
}), oldVerticalBarPos !== top && triggerEvent && this.checkVerticalScrollBarEnd();
|
|
52482
52481
|
}
|
|
52483
52482
|
setScrollLeft(left, event, triggerEvent = !0) {
|
|
52484
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
52483
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
52485
52484
|
if (!this.table || !this.table.scenegraph) return;
|
|
52486
52485
|
this.table.scrollLeft;
|
|
52487
|
-
const
|
|
52488
|
-
|
|
52489
|
-
rightFrozenOffset = null !== (_f = null === (_e = (_d = this.table).getRightFrozenColsOffset) || void 0 === _e ? void 0 : _e.call(_d)) && void 0 !== _f ? _f : 0,
|
|
52490
|
-
scrollRange = Math.max(0, totalWidth - this.table.scenegraph.width - frozenOffset - rightFrozenOffset),
|
|
52491
|
-
sizeTolerance = (null === (_g = this.table.options.customConfig) || void 0 === _g ? void 0 : _g._disableColumnAndRowSizeRound) ? 1 : 0;
|
|
52486
|
+
const scrollRange = getBodyHorizontalScrollRange(this.table),
|
|
52487
|
+
sizeTolerance = (null === (_a = this.table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? 1 : 0;
|
|
52492
52488
|
left = Math.max(0, Math.min(left, scrollRange - sizeTolerance)), left = Math.ceil(left);
|
|
52493
52489
|
const oldHorizontalBarPos = this.scroll.horizontalBarPos,
|
|
52494
52490
|
xRatio = scrollRange ? left / scrollRange : 0;
|
|
52495
|
-
if ((oldHorizontalBarPos !== left || !0 === (null === (
|
|
52491
|
+
if ((oldHorizontalBarPos !== left || !0 === (null === (_c = null === (_b = this.table.options) || void 0 === _b ? void 0 : _b.customConfig) || void 0 === _c ? void 0 : _c.scrollEventAlwaysTrigger)) && triggerEvent) {
|
|
52496
52492
|
let horizontalBarPos = left;
|
|
52497
52493
|
isValid$1(horizontalBarPos) && !isNaN(horizontalBarPos) || (horizontalBarPos = 0);
|
|
52498
52494
|
const dx = horizontalBarPos - oldHorizontalBarPos;
|
|
@@ -52500,8 +52496,8 @@
|
|
|
52500
52496
|
event: null == event ? void 0 : event.nativeEvent,
|
|
52501
52497
|
scrollTop: this.scroll.verticalBarPos,
|
|
52502
52498
|
scrollLeft: horizontalBarPos,
|
|
52503
|
-
scrollHeight: null === (
|
|
52504
|
-
scrollWidth: null === (
|
|
52499
|
+
scrollHeight: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
|
|
52500
|
+
scrollWidth: null === (_e = this.table.theme.scrollStyle) || void 0 === _e ? void 0 : _e.width,
|
|
52505
52501
|
viewHeight: this.table.tableNoFrameHeight,
|
|
52506
52502
|
viewWidth: this.table.tableNoFrameWidth,
|
|
52507
52503
|
scrollDirection: "horizontal",
|
|
@@ -52518,8 +52514,8 @@
|
|
|
52518
52514
|
event: null == event ? void 0 : event.nativeEvent,
|
|
52519
52515
|
scrollTop: this.scroll.verticalBarPos,
|
|
52520
52516
|
scrollLeft: this.scroll.horizontalBarPos,
|
|
52521
|
-
scrollHeight: null === (
|
|
52522
|
-
scrollWidth: null === (
|
|
52517
|
+
scrollHeight: null === (_f = this.table.theme.scrollStyle) || void 0 === _f ? void 0 : _f.width,
|
|
52518
|
+
scrollWidth: null === (_g = this.table.theme.scrollStyle) || void 0 === _g ? void 0 : _g.width,
|
|
52523
52519
|
viewHeight: this.table.tableNoFrameHeight,
|
|
52524
52520
|
viewWidth: this.table.tableNoFrameWidth,
|
|
52525
52521
|
scrollDirection: "horizontal",
|