Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the ability to disable column virtualization (#10599)
- Loading branch information
Showing
32 changed files
with
822 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"issuesOrigin": "private", | ||
"title": "Added support for the ability to disable column virtualization via the new `renderAllColumns` option", | ||
"type": "added", | ||
"issueOrPR": 10599, | ||
"breaking": false, | ||
"framework": "none" | ||
} |
8 changes: 6 additions & 2 deletions
8
handsontable/src/3rdparty/walkontable/src/calculator/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import ViewportColumnsCalculator from './viewportColumns'; | ||
import ViewportRowsCalculator from './viewportRows'; | ||
import { RenderAllColumnsCalculator } from './renderAllColumns'; | ||
import { RenderAllRowsCalculator } from './renderAllRows'; | ||
import { ViewportColumnsCalculator } from './viewportColumns'; | ||
import { ViewportRowsCalculator } from './viewportRows'; | ||
|
||
export * from './constants'; | ||
export { | ||
RenderAllColumnsCalculator, | ||
RenderAllRowsCalculator, | ||
ViewportColumnsCalculator, | ||
ViewportRowsCalculator, | ||
}; |
43 changes: 43 additions & 0 deletions
43
handsontable/src/3rdparty/walkontable/src/calculator/renderAllColumns.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* @typedef {object} RenderAllColumnsCalculatorOptions | ||
* @property {number} totalColumns Total number of columns. | ||
*/ | ||
/** | ||
* Holds all calculations needed to perform rendering of the all columns. | ||
* | ||
* @class RenderAllColumnsCalculator | ||
*/ | ||
export class RenderAllColumnsCalculator { | ||
/** | ||
* Number of rendered/visible columns. | ||
* | ||
* @type {number} | ||
*/ | ||
count = 0; | ||
/** | ||
* Index of the first rendered/visible column. | ||
* | ||
* @type {number} | ||
*/ | ||
startColumn = 0; | ||
/** | ||
* Index of the last rendered/visible column. | ||
* | ||
* @type {number} | ||
*/ | ||
endColumn = 0; | ||
/** | ||
* Position of the first rendered/visible column (in px). | ||
* | ||
* @type {number} | ||
*/ | ||
startPosition = 0; | ||
|
||
/** | ||
* @param {RenderAllColumnsCalculatorOptions} options Object with all options specified for column viewport calculation. | ||
*/ | ||
constructor(options) { | ||
this.count = options.totalColumns; | ||
this.endColumn = this.count - 1; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
handsontable/src/3rdparty/walkontable/src/calculator/renderAllRows.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* @typedef {object} RenderAllRowsCalculatorOptions | ||
* @property {number} totalRows Total number of rows. | ||
*/ | ||
/** | ||
* Holds all calculations needed to perform rendering of the all rows. | ||
* | ||
* @class RenderAllRowsCalculator | ||
*/ | ||
export class RenderAllRowsCalculator { | ||
/** | ||
* Number of rendered/visible rows. | ||
* | ||
* @type {number} | ||
*/ | ||
count = 0; | ||
/** | ||
* Index of the first rendered/visible row. | ||
* | ||
* @type {number} | ||
*/ | ||
startRow = 0; | ||
/** | ||
* Index of the last rendered/visible row. | ||
* | ||
* @type {number} | ||
*/ | ||
endRow = 0; | ||
/** | ||
* Position of the first rendered/visible row (in px). | ||
* | ||
* @type {number} | ||
*/ | ||
startPosition = 0; | ||
|
||
/** | ||
* @param {RenderAllRowsCalculatorOptions} options Object with all options specified for row viewport calculation. | ||
*/ | ||
constructor(options) { | ||
this.count = options.totalRows; | ||
this.endRow = this.count - 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.