@visactor/vtable 1.24.0 → 1.25.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/cjs/core/BaseTable.d.ts +7 -0
- package/cjs/core/BaseTable.js +53 -15
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/tableHelper.js +5 -3
- package/cjs/core/tableHelper.js.map +1 -1
- package/cjs/core/utils/get-cell-position.js +23 -12
- package/cjs/core/utils/get-cell-position.js.map +1 -1
- package/cjs/dataset/DataStatistics.js +2 -1
- package/cjs/edit/edit-manager.js +0 -1
- package/cjs/event/listener/container-dom.js +7 -5
- package/cjs/event/listener/container-dom.js.map +1 -1
- package/cjs/event/listener/scroll-bar.js +77 -6
- package/cjs/event/listener/scroll-bar.js.map +1 -1
- package/cjs/event/listener/table-group.js +29 -20
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/scroll.js +34 -11
- package/cjs/event/scroll.js.map +1 -1
- package/cjs/event/util.d.ts +2 -0
- package/cjs/event/util.js +28 -3
- package/cjs/event/util.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/component/table-component.d.ts +6 -1
- package/cjs/scenegraph/component/table-component.js +143 -16
- package/cjs/scenegraph/component/table-component.js.map +1 -1
- package/cjs/scenegraph/component/util.js +5 -2
- package/cjs/scenegraph/component/util.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +29 -10
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/cjs/scenegraph/group-creater/init-scenegraph.js +36 -6
- package/cjs/scenegraph/group-creater/init-scenegraph.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +4 -2
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +13 -0
- package/cjs/scenegraph/scenegraph.js +194 -23
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.js +9 -10
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/scenegraph/select/delete-select-border.js.map +1 -1
- package/cjs/scenegraph/select/move-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-custom-select-border.js +9 -9
- package/cjs/scenegraph/select/update-custom-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js +14 -73
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-select-style.js.map +1 -1
- package/cjs/state/state.d.ts +7 -1
- package/cjs/state/state.js +61 -28
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +10 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +1085 -325
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.d.ts +7 -0
- package/es/core/BaseTable.js +53 -15
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/tableHelper.js +5 -3
- package/es/core/tableHelper.js.map +1 -1
- package/es/core/utils/get-cell-position.js +23 -12
- package/es/core/utils/get-cell-position.js.map +1 -1
- package/es/dataset/DataStatistics.js +2 -1
- package/es/edit/edit-manager.js +1 -2
- package/es/event/listener/container-dom.js +7 -5
- package/es/event/listener/container-dom.js.map +1 -1
- package/es/event/listener/scroll-bar.js +75 -6
- package/es/event/listener/scroll-bar.js.map +1 -1
- package/es/event/listener/table-group.js +29 -21
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/scroll.js +34 -11
- package/es/event/scroll.js.map +1 -1
- package/es/event/util.d.ts +2 -0
- package/es/event/util.js +24 -0
- package/es/event/util.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scenegraph/component/table-component.d.ts +6 -1
- package/es/scenegraph/component/table-component.js +141 -16
- package/es/scenegraph/component/table-component.js.map +1 -1
- package/es/scenegraph/component/util.js +5 -2
- package/es/scenegraph/component/util.js.map +1 -1
- package/es/scenegraph/graphic/contributions/group-contribution-render.js +29 -10
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/es/scenegraph/group-creater/init-scenegraph.js +36 -6
- package/es/scenegraph/group-creater/init-scenegraph.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +4 -2
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +13 -0
- package/es/scenegraph/scenegraph.js +185 -18
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/select/create-select-border.js +9 -10
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/scenegraph/select/delete-select-border.js.map +1 -1
- package/es/scenegraph/select/move-select-border.js.map +1 -1
- package/es/scenegraph/select/update-custom-select-border.js +9 -9
- package/es/scenegraph/select/update-custom-select-border.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js +14 -73
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/scenegraph/select/update-select-style.js.map +1 -1
- package/es/state/state.d.ts +7 -1
- package/es/state/state.js +61 -28
- package/es/state/state.js.map +1 -1
- package/es/ts-types/base-table.d.ts +10 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/es/core/BaseTable.d.ts
CHANGED
|
@@ -164,6 +164,7 @@ export declare abstract class BaseTable extends EventTarget implements BaseTable
|
|
|
164
164
|
set heightAdaptiveMode(heightAdaptiveMode: HeightAdaptiveModeDef);
|
|
165
165
|
_colWidthDefineToPxWidth(width: string | number): number;
|
|
166
166
|
_getMaxFrozenWidth(): number;
|
|
167
|
+
_getMaxRightFrozenWidth(): number;
|
|
167
168
|
_getComputedFrozenColCount(frozenColCount: number): number;
|
|
168
169
|
private _getColWidthLimits;
|
|
169
170
|
_adjustColWidth(col: number, orgWidth: number): number;
|
|
@@ -275,8 +276,14 @@ export declare abstract class BaseTable extends EventTarget implements BaseTable
|
|
|
275
276
|
renderWithRecreateCells(): void;
|
|
276
277
|
getFrozenRowsHeight(): number;
|
|
277
278
|
getFrozenColsWidth(): number;
|
|
279
|
+
getFrozenColsContentWidth(): number;
|
|
280
|
+
getFrozenColsOffset(): number;
|
|
281
|
+
getFrozenColsScrollLeft(): number;
|
|
278
282
|
getBottomFrozenRowsHeight(): number;
|
|
279
283
|
getRightFrozenColsWidth(): number;
|
|
284
|
+
getRightFrozenColsContentWidth(): number;
|
|
285
|
+
getRightFrozenColsOffset(): number;
|
|
286
|
+
getRightFrozenColsScrollLeft(): number;
|
|
280
287
|
getDrawRange(): Rect;
|
|
281
288
|
_getMouseAbstractPoint(evt: TouchEvent | MouseEvent | undefined): {
|
|
282
289
|
x: number;
|
package/es/core/BaseTable.js
CHANGED
|
@@ -92,7 +92,7 @@ export class BaseTable extends EventTarget {
|
|
|
92
92
|
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;
|
|
93
93
|
if (super(), this.showFrozenIcon = !0, this._scrollToRowCorrectTimer = null, this._tableBorderWidth_left = 0,
|
|
94
94
|
this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0,
|
|
95
|
-
this.version = "1.
|
|
95
|
+
this.version = "1.25.0", this.id = `VTable${Date.now()}`, this.isReleased = !1,
|
|
96
96
|
this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
97
97
|
"node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
|
|
98
98
|
container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
@@ -299,7 +299,7 @@ export class BaseTable extends EventTarget {
|
|
|
299
299
|
frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
|
|
300
300
|
this.options.frozenColCount = frozenColCount;
|
|
301
301
|
const maxFrozenWidth = this._getMaxFrozenWidth();
|
|
302
|
-
if (this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
|
|
302
|
+
if (!this.options.scrollFrozenCols && this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
|
|
303
303
|
const computedFrozenColCount = this._getComputedFrozenColCount(frozenColCount);
|
|
304
304
|
this.internalProps.frozenColCount = computedFrozenColCount;
|
|
305
305
|
}
|
|
@@ -309,7 +309,7 @@ export class BaseTable extends EventTarget {
|
|
|
309
309
|
frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
|
|
310
310
|
this.options.frozenColCount = frozenColCount;
|
|
311
311
|
const maxFrozenWidth = this._getMaxFrozenWidth();
|
|
312
|
-
if (this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
|
|
312
|
+
if (!this.options.scrollFrozenCols && this.getColsWidth(0, frozenColCount - 1) > maxFrozenWidth) if (this.internalProps.unfreezeAllOnExceedsMaxWidth) this.internalProps.frozenColCount = 0; else {
|
|
313
313
|
const computedFrozenColCount = this._getComputedFrozenColCount(frozenColCount);
|
|
314
314
|
this.internalProps.frozenColCount = computedFrozenColCount;
|
|
315
315
|
}
|
|
@@ -464,6 +464,11 @@ export class BaseTable extends EventTarget {
|
|
|
464
464
|
const maxFrozenWidth = null !== (_a = this.options.maxFrozenWidth) && void 0 !== _a ? _a : "80%";
|
|
465
465
|
return _toPxWidth(this, maxFrozenWidth);
|
|
466
466
|
}
|
|
467
|
+
_getMaxRightFrozenWidth() {
|
|
468
|
+
var _a, _b;
|
|
469
|
+
const maxRightFrozenWidth = null !== (_b = null !== (_a = this.options.maxRightFrozenWidth) && void 0 !== _a ? _a : this.options.maxFrozenWidth) && void 0 !== _b ? _b : "80%";
|
|
470
|
+
return _toPxWidth(this, maxRightFrozenWidth);
|
|
471
|
+
}
|
|
467
472
|
_getComputedFrozenColCount(frozenColCount) {
|
|
468
473
|
const maxFrozenWidth = this._getMaxFrozenWidth();
|
|
469
474
|
let computedfrozenColCount = frozenColCount;
|
|
@@ -786,22 +791,27 @@ export class BaseTable extends EventTarget {
|
|
|
786
791
|
let relativeX = !0, relativeY = !0;
|
|
787
792
|
(null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
|
|
788
793
|
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1);
|
|
789
|
-
const cellRect = this.getCellRect(col, row);
|
|
790
|
-
return this.
|
|
794
|
+
const cellRect = this.getCellRect(col, row), rect = this._toRelativeRect(cellRect, relativeX, relativeY);
|
|
795
|
+
return (null == isFrozenCell ? void 0 : isFrozenCell.col) && !this.isRightFrozenColumn(col, row) && rect.offsetLeft(-this.getFrozenColsScrollLeft()),
|
|
796
|
+
rect;
|
|
791
797
|
}
|
|
792
798
|
getCellRangeRelativeRect(range) {
|
|
793
799
|
if (range.start) {
|
|
794
800
|
const isFrozenCell = this.isFrozenCell(range.start.col, range.start.row);
|
|
795
801
|
let relativeX = !0, relativeY = !0;
|
|
796
|
-
|
|
797
|
-
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1)
|
|
798
|
-
this._toRelativeRect(this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row), relativeX, relativeY);
|
|
802
|
+
(null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
|
|
803
|
+
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1);
|
|
804
|
+
const rect = this._toRelativeRect(this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row), relativeX, relativeY);
|
|
805
|
+
return (null == isFrozenCell ? void 0 : isFrozenCell.col) && !this.isRightFrozenColumn(range.start.col, range.start.row) && rect.offsetLeft(-this.getFrozenColsScrollLeft()),
|
|
806
|
+
rect;
|
|
799
807
|
}
|
|
800
808
|
const cellRange = this.getCellRange(range.col, range.row), isFrozenCell = this.isFrozenCell(range.col, range.row);
|
|
801
809
|
let relativeX = !0, relativeY = !0;
|
|
802
|
-
|
|
803
|
-
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1)
|
|
804
|
-
this._toRelativeRect(this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row), relativeX, relativeY);
|
|
810
|
+
(null == isFrozenCell ? void 0 : isFrozenCell.col) && (null == isFrozenCell ? void 0 : isFrozenCell.row) ? (relativeX = !1,
|
|
811
|
+
relativeY = !1) : (null == isFrozenCell ? void 0 : isFrozenCell.col) ? relativeX = !1 : (null == isFrozenCell ? void 0 : isFrozenCell.row) && (relativeY = !1);
|
|
812
|
+
const rect = this._toRelativeRect(this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row), relativeX, relativeY);
|
|
813
|
+
return (null == isFrozenCell ? void 0 : isFrozenCell.col) && !this.isRightFrozenColumn(range.col, range.row) && rect.offsetLeft(-this.getFrozenColsScrollLeft()),
|
|
814
|
+
rect;
|
|
805
815
|
}
|
|
806
816
|
getVisibleCellRangeRelativeRect(range) {
|
|
807
817
|
let cellRange;
|
|
@@ -903,7 +913,7 @@ export class BaseTable extends EventTarget {
|
|
|
903
913
|
}
|
|
904
914
|
getVisibleRect() {
|
|
905
915
|
const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, width = this.tableNoFrameWidth, height = this.tableNoFrameHeight;
|
|
906
|
-
return new Rect(scrollLeft, scrollTop, width, height);
|
|
916
|
+
return new Rect(scrollLeft + this.getFrozenColsOffset(), scrollTop, width, height);
|
|
907
917
|
}
|
|
908
918
|
get visibleRowCount() {
|
|
909
919
|
const {frozenRowCount: frozenRowCount} = this, visibleRect = this.getVisibleRect(), visibleTop = frozenRowCount > 0 ? visibleRect.top + this.getRowsHeight(0, frozenRowCount - 1) : visibleRect.top, initRow = this.getTargetRowAt(visibleTop);
|
|
@@ -919,7 +929,7 @@ export class BaseTable extends EventTarget {
|
|
|
919
929
|
return count;
|
|
920
930
|
}
|
|
921
931
|
getBodyVisibleCellRange() {
|
|
922
|
-
const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenRowsHeight = this.getFrozenRowsHeight(),
|
|
932
|
+
const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenRowsHeight = this.getFrozenRowsHeight(), frozenColsContentWidth = this.getFrozenColsContentWidth(), frozenColsOffset = this.getFrozenColsOffset(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), {row: rowStart} = this.getRowAt(scrollTop + frozenRowsHeight + 1), {col: colStart} = this.getColAt(scrollLeft + frozenColsContentWidth + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight).row : this.rowCount - 1, colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + frozenColsOffset + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
|
|
923
933
|
return colEnd < 0 || rowEnd < 0 ? null : {
|
|
924
934
|
rowStart: rowStart,
|
|
925
935
|
colStart: colStart,
|
|
@@ -935,14 +945,14 @@ export class BaseTable extends EventTarget {
|
|
|
935
945
|
};
|
|
936
946
|
}
|
|
937
947
|
getBodyVisibleColRange(start_deltaX = 0, end_deltaX = 0) {
|
|
938
|
-
const {scrollLeft: scrollLeft} = this,
|
|
948
|
+
const {scrollLeft: scrollLeft} = this, frozenColsContentWidth = this.getFrozenColsContentWidth(), frozenColsOffset = this.getFrozenColsOffset(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), {col: colStart} = this.getColAt(scrollLeft + frozenColsContentWidth + 1 + start_deltaX), colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + frozenColsOffset + this.tableNoFrameWidth - 1 - rightFrozenColsWidth + end_deltaX).col : this.colCount - 1;
|
|
939
949
|
return colEnd < 0 ? null : {
|
|
940
950
|
colStart: colStart,
|
|
941
951
|
colEnd: colEnd
|
|
942
952
|
};
|
|
943
953
|
}
|
|
944
954
|
get visibleColCount() {
|
|
945
|
-
const {frozenColCount: frozenColCount} = this, visibleRect = this.getVisibleRect(), visibleLeft = frozenColCount > 0 ? visibleRect.left + this.
|
|
955
|
+
const {frozenColCount: frozenColCount} = this, visibleRect = this.getVisibleRect(), visibleLeft = frozenColCount > 0 ? visibleRect.left + this.getFrozenColsWidth() : visibleRect.left, initCol = this.getTargetColAt(visibleLeft);
|
|
946
956
|
if (!initCol) return 0;
|
|
947
957
|
const startCol = Math.max(initCol.left >= visibleLeft ? initCol.col : initCol.col + 1, frozenColCount);
|
|
948
958
|
let absoluteLeft = this.getColsWidth(0, startCol - 1), count = 0;
|
|
@@ -1143,8 +1153,22 @@ export class BaseTable extends EventTarget {
|
|
|
1143
1153
|
return this.getRowsHeight(0, this.frozenRowCount - 1);
|
|
1144
1154
|
}
|
|
1145
1155
|
getFrozenColsWidth() {
|
|
1156
|
+
const contentWidth = this.getFrozenColsContentWidth();
|
|
1157
|
+
if (!this.options.scrollFrozenCols) return contentWidth;
|
|
1158
|
+
const maxFrozenWidth = this._getMaxFrozenWidth();
|
|
1159
|
+
return Math.min(contentWidth, maxFrozenWidth);
|
|
1160
|
+
}
|
|
1161
|
+
getFrozenColsContentWidth() {
|
|
1146
1162
|
return this.getColsWidth(0, this.frozenColCount - 1);
|
|
1147
1163
|
}
|
|
1164
|
+
getFrozenColsOffset() {
|
|
1165
|
+
const contentWidth = this.getFrozenColsContentWidth(), viewportWidth = this.getFrozenColsWidth();
|
|
1166
|
+
return Math.max(0, contentWidth - viewportWidth);
|
|
1167
|
+
}
|
|
1168
|
+
getFrozenColsScrollLeft() {
|
|
1169
|
+
var _a;
|
|
1170
|
+
return null !== (_a = this.stateManager.scroll.frozenHorizontalBarPos) && void 0 !== _a ? _a : 0;
|
|
1171
|
+
}
|
|
1148
1172
|
getBottomFrozenRowsHeight() {
|
|
1149
1173
|
if (this.bottomFrozenRowCount > 0) {
|
|
1150
1174
|
let height = 0;
|
|
@@ -1154,6 +1178,12 @@ export class BaseTable extends EventTarget {
|
|
|
1154
1178
|
return 0;
|
|
1155
1179
|
}
|
|
1156
1180
|
getRightFrozenColsWidth() {
|
|
1181
|
+
const contentWidth = this.getRightFrozenColsContentWidth();
|
|
1182
|
+
if (!this.options.scrollRightFrozenCols) return contentWidth;
|
|
1183
|
+
const maxRightFrozenWidth = this._getMaxRightFrozenWidth();
|
|
1184
|
+
return Math.min(contentWidth, maxRightFrozenWidth);
|
|
1185
|
+
}
|
|
1186
|
+
getRightFrozenColsContentWidth() {
|
|
1157
1187
|
if (this.rightFrozenColCount > 0) {
|
|
1158
1188
|
let width = 0;
|
|
1159
1189
|
for (let col = this.colCount - this.rightFrozenColCount; col <= this.colCount - 1; col++) width += this.getColWidth(col);
|
|
@@ -1161,6 +1191,14 @@ export class BaseTable extends EventTarget {
|
|
|
1161
1191
|
}
|
|
1162
1192
|
return 0;
|
|
1163
1193
|
}
|
|
1194
|
+
getRightFrozenColsOffset() {
|
|
1195
|
+
const contentWidth = this.getRightFrozenColsContentWidth(), viewportWidth = this.getRightFrozenColsWidth();
|
|
1196
|
+
return Math.max(0, contentWidth - viewportWidth);
|
|
1197
|
+
}
|
|
1198
|
+
getRightFrozenColsScrollLeft() {
|
|
1199
|
+
var _a;
|
|
1200
|
+
return null !== (_a = this.stateManager.scroll.rightFrozenHorizontalBarPos) && void 0 !== _a ? _a : 0;
|
|
1201
|
+
}
|
|
1164
1202
|
getDrawRange() {
|
|
1165
1203
|
var _a, _b;
|
|
1166
1204
|
const width = (null === (_a = this.containerFit) || void 0 === _a ? void 0 : _a.width) ? this.tableNoFrameWidth : Math.min(this.tableNoFrameWidth, this.getAllColsWidth()), height = (null === (_b = this.containerFit) || void 0 === _b ? void 0 : _b.height) ? this.tableNoFrameHeight : Math.min(this.tableNoFrameHeight, this.getAllRowsHeight());
|