Skip to content

Hypergrid v3.0.1

Compare
Choose a tag to compare
@joneit joneit released this 12 Jul 10:56
· 90 commits to master since this release
9fcf6a0

This patch release v3.0.1 supersedes v3.0.0.

Synopsis

  1. Fix row header click regression
  2. Make deprecated columnEnum methods backwards compatible
  3. New demo: click-rect.html
  4. clickRect enhancements

1. Fix row header click regression

v3.0.0 threw an error when clicking in a row number cell. This has been fixed.

2. Make deprecated columnEnum methods backwards compatible

Although behavior.columnEnum and related methods and properties have been deprecated, and will issue a warning if used, they are still supposed to be fully functional. The version released in 3.0.0, however, was not true to the original implementation, returning the column objects rather than the column indexes (and therefore not an "enum" at all). This was the only issue preventing the v2.1.x Dev Testbench demo from working with v3.0.x. This has been fixed.

3. New demo: click-rect.html

Demonstrates the use of config.clickRect and includes instructions and notes on the page and additional notes and alternate codings in the view source. (This demo is not dependent on the enhancements discussed below.)

4. clickRect enhancements

  • clickRect is now also a property — in addition to being settable by cell renderer
  • clickRect can now be a simple object { x:number, y:number, width:number, height:number } — as alternative to a Rectangle object
  • row selection now respects clickRect
  • add hotIcon property with possible values of 'left', 'center', or 'right'. Respected by the SimpleCell cell renderer which, per value, automatically sets config.clickRect to image rect specified in config.leftIcon, config.centerIcon, and config.rightIcon, respectively.
  • SimpleCell now paints center icon on top of text (previously only painted it if no text)

Ignore commit "skip calls to canvas.paintNow during createColumns()"

This commit (eb54c56) was supposed to be reverted; it was not intended to be included in this release. It is ineffective in resolving errors that are thrown when the paint loop is stopped. Ignore. This will be reverted in 3.0.2 in favor of a more general solution to these issues.

Published to npm

This release has been published (as of 7/14/2018) as a module to the npm registry.

Pre-bundled build file

A bundled build of this release is available on the CDN.