@deephaven/grid 1.10.2-lerna-v9.0 → 1.12.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/GridMetricCalculator.js +2 -2
- package/dist/GridMetricCalculator.js.map +1 -1
- package/dist/GridRenderer.d.ts.map +1 -1
- package/dist/GridRenderer.js +6 -5
- package/dist/GridRenderer.js.map +1 -1
- package/dist/GridUtils.d.ts +14 -1
- package/dist/GridUtils.d.ts.map +1 -1
- package/dist/GridUtils.js +31 -4
- package/dist/GridUtils.js.map +1 -1
- package/dist/mouse-handlers/GridColumnSeparatorMouseHandler.d.ts.map +1 -1
- package/dist/mouse-handlers/GridColumnSeparatorMouseHandler.js +1 -1
- package/dist/mouse-handlers/GridColumnSeparatorMouseHandler.js.map +1 -1
- package/package.json +3 -3
package/dist/GridRenderer.js
CHANGED
|
@@ -1041,7 +1041,8 @@ export class GridRenderer {
|
|
|
1041
1041
|
var columnIndex = startIndex;
|
|
1042
1042
|
while (columnIndex <= endIndex) {
|
|
1043
1043
|
var {
|
|
1044
|
-
columnCount
|
|
1044
|
+
columnCount,
|
|
1045
|
+
calculatedColumnWidths
|
|
1045
1046
|
} = metrics;
|
|
1046
1047
|
var modelColumn = getOrThrow(modelColumns, columnIndex);
|
|
1047
1048
|
var columnGroupName = model.textForColumnHeader(modelColumn, depth);
|
|
@@ -1054,25 +1055,25 @@ export class GridRenderer {
|
|
|
1054
1055
|
// The group will be drawn as if it were a column with a max width of the bounds width
|
|
1055
1056
|
var prevColumnIndex = columnIndex - 1;
|
|
1056
1057
|
while (prevColumnIndex >= 0 && (columnGroupRight - columnGroupLeft < visibleWidth || columnGroupLeft > minX)) {
|
|
1057
|
-
var _modelColumns$get, _ref3, _userColumnWidths$get;
|
|
1058
|
+
var _modelColumns$get, _ref3, _ref4, _userColumnWidths$get;
|
|
1058
1059
|
var prevModelIndex = (_modelColumns$get = modelColumns.get(prevColumnIndex)) !== null && _modelColumns$get !== void 0 ? _modelColumns$get : GridUtils.getModelIndex(prevColumnIndex, movedColumns);
|
|
1059
1060
|
if (prevModelIndex == null || model.textForColumnHeader(prevModelIndex, depth) !== columnGroupName) {
|
|
1060
1061
|
// Previous column not in the same group
|
|
1061
1062
|
break;
|
|
1062
1063
|
}
|
|
1063
|
-
var prevColumnWidth = (_ref3 = (_userColumnWidths$get = userColumnWidths.get(prevModelIndex)) !== null && _userColumnWidths$get !== void 0 ? _userColumnWidths$get : allColumnWidths.get(prevColumnIndex)) !== null && _ref3 !== void 0 ? _ref3 : columnWidth;
|
|
1064
|
+
var prevColumnWidth = (_ref3 = (_ref4 = (_userColumnWidths$get = userColumnWidths.get(prevModelIndex)) !== null && _userColumnWidths$get !== void 0 ? _userColumnWidths$get : allColumnWidths.get(prevColumnIndex)) !== null && _ref4 !== void 0 ? _ref4 : calculatedColumnWidths.get(prevModelIndex)) !== null && _ref3 !== void 0 ? _ref3 : columnWidth;
|
|
1064
1065
|
columnGroupLeft -= prevColumnWidth;
|
|
1065
1066
|
prevColumnIndex -= 1;
|
|
1066
1067
|
}
|
|
1067
1068
|
var nextColumnIndex = columnIndex + 1;
|
|
1068
1069
|
while (nextColumnIndex < columnCount && (columnGroupRight - columnGroupLeft < visibleWidth || columnGroupRight < maxX)) {
|
|
1069
|
-
var _modelColumns$get2,
|
|
1070
|
+
var _modelColumns$get2, _ref5, _userColumnWidths$get2;
|
|
1070
1071
|
var nextModelIndex = (_modelColumns$get2 = modelColumns.get(nextColumnIndex)) !== null && _modelColumns$get2 !== void 0 ? _modelColumns$get2 : GridUtils.getModelIndex(nextColumnIndex, movedColumns);
|
|
1071
1072
|
if (model.textForColumnHeader(nextModelIndex, depth) !== columnGroupName) {
|
|
1072
1073
|
// Next column not in the same group
|
|
1073
1074
|
break;
|
|
1074
1075
|
}
|
|
1075
|
-
var nextColumnWidth = (
|
|
1076
|
+
var nextColumnWidth = (_ref5 = (_userColumnWidths$get2 = userColumnWidths.get(nextModelIndex)) !== null && _userColumnWidths$get2 !== void 0 ? _userColumnWidths$get2 : allColumnWidths.get(nextColumnIndex)) !== null && _ref5 !== void 0 ? _ref5 : columnWidth;
|
|
1076
1077
|
columnGroupRight += nextColumnWidth;
|
|
1077
1078
|
nextColumnIndex += 1;
|
|
1078
1079
|
}
|