@true-directive/base
Version:
The set of base classes for the TrueDirective Grid
30 lines (29 loc) • 1.09 kB
JavaScript
// Диапазон в разметке
var GridLayoutRange = /** @class */ (function () {
function GridLayoutRange(rowIndex, // Индекс в результирующем наборе
columnIndex) {
this.rowIndex = rowIndex;
this.columnIndex = columnIndex;
this.rangeX = 0;
this.rangeY = 0;
}
return GridLayoutRange;
}());
export { GridLayoutRange };
// Выделение в разметке
var GridLayoutSelection = /** @class */ (function () {
function GridLayoutSelection() {
this.displayedStartIndex = 0; // Индекс в отображаемых строках
this.focusedRowIndex = -1;
this.focusedColumnIndex = -1;
this.ranges = [];
}
GridLayoutSelection.prototype.clear = function () {
this.ranges.splice(0, this.ranges.length);
};
GridLayoutSelection.prototype.updateDisplayedStartIndex = function (startIndex) {
this.displayedStartIndex = startIndex;
};
return GridLayoutSelection;
}());
export { GridLayoutSelection };