Skip to content

Hypergrid v2.1.7

Compare
Choose a tag to compare
@joneit joneit released this 13 Apr 20:21
· 217 commits to master since this release
fe48730

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-mutated config.format now used to format config.value as config.formatValue for cell renderer (Issue #708).
  • Added row properties optimization to assignProps to make use of the fact that it now has grid.properties as its prototype.
  • Optimized assignProps for 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 property box-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; defaultRowHight default will be decremented by the value of gridLinesHWidth (i.e., 1 pixel) to compensate.
      • Cells are spread apart horizontally by gridLinesVWidth pixels (rendered contiguously when gridLinesVWidth === 0).
      • Cells are spread apart vertically by gridLinesHWidth (rendered contiguously when gridLinesHWidth === 0).
    • SimpleCell#paint cell renderer now renders text 1 pixel higher up on odd cell heights.
    • synchronizeScrollingBoundaries method 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 treeColumnAutosizing property
    • Add behavior.getTreeColumn and behavior.autoSizeTreeColumn methods
  • 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.