Hypergrid v2.1.7
Please refer primarily to the Release Notes: v2.1.0 wiki page as well as the notes in the Hypergrid v2.1.2, Hypergrid v2.1.3, Hypergrid v2.1.4, Hypergrid v2.1.5, and Hypergrid v2.1.6 patches.
Patch release v2.1.7 reflects PR #706 and includes bug fixes and some new features:
This patch release includes:
getCell-mutatedconfig.formatnow used to formatconfig.valueasconfig.formatValuefor cell renderer (Issue #708).- Added row properties optimization to
assignPropsto make use of the fact that it now hasgrid.propertiesas its prototype. - Optimized
assignPropsfor these complex use cases:- column + cell
- cell + column
- cell + … + column
- Render "fixed" vertical rule line to righty of any non-scrollable columns. Previously, when there were no fixed columns, the vertical fixed rule line was not rendered at all. It now renders to right of tree column when visible; else row number column when visible. Only when there are no such columns is it not rendered at all.
- Fixed rule lines now have a minimum thickness equal to that of the grid lines.
boxSizing(new grid property, analogous to CSS propertybox-sizing) has two possible settings:boxSizing === 'border-box'.- This is the default setting in v2.1.7.
- Cells are always rendered contiguously.
- Grid rule lines are rendered inside cell at right and bottom edges.
- Fixed rule lines are also rendered inside the cell, except for any portion of thickness exceeding grid line thickness, which is rendered to right of and below the cell, pushing cells to right rightward and cells below down.
boxSizing === 'content-box':- This will be the default setting in v3.0.0;
defaultRowHightdefault will be decremented by the value ofgridLinesHWidth(i.e., 1 pixel) to compensate. - Cells are spread apart horizontally by
gridLinesVWidthpixels (rendered contiguously whengridLinesVWidth === 0). - Cells are spread apart vertically by
gridLinesHWidth(rendered contiguously whengridLinesHWidth === 0).
- This will be the default setting in v3.0.0;
SimpleCell#paintcell renderer now renders text 1 pixel higher up on odd cell heights.synchronizeScrollingBoundariesmethod corrected for better positioning of last row/column when scrolled all the way to the bottom/right.- Now respects cell gaps in calculating maximum scroll position so that the last row/column are positioned properly at bottom/right.
- Now always called from
grid.setData
- Fix column auto-sizing (Issue #710)
- Fix tree column auto-sizing:
- Add
treeColumnAutosizingproperty - Add
behavior.getTreeColumnandbehavior.autoSizeTreeColumnmethods
- Add
- Update package-lock.json (Issue #711)
Published to npm
This release has been published as a module to the npm registry.
Pre-bundled build file
A bundled build of this release is available on the CDN.