Skip to content

3.5.0

Latest

Choose a tag to compare

@joewdavies joewdavies released this 09 Nov 16:55

Upgrade from 3.4.0 if you use GPUGridRenderer with a CSVGrid. In 3.4.0 a large dataset of one file, such as one of 100,000 cells, was never drawn: its build, cut short at the end of each frame's time, started again from nothing on the next.

All new options are opt-in: maps that do not set them behave as in 3.4.0.

New

  • maxCells option of MultiResolutionDataset: limits what a view can load from a tiled dataset by going to a coarser resolution before anything is downloaded, with getRequestedDataset() for the resolution the zoom asks for.
  • hoverReach option of GridLayer and getNearestCellFromPosition() of Dataset, for cells drawn bigger than they are: the nearest cell within a distance of the mouse is the one hovered.
  • GPUGridRenderer:
    • backdrops: false for no coarser resolution standing in during a movement where a layer's own tiles have not come in.
    • softwareWebGL: false leaves a browser that draws WebGL on the CPU to the map's 2D drawing, which is far faster there. Its software property says whether it does.
    • stats() says what it has done, without reading its private fields.
  • blendMode option of VennLegend, for a map whose colours do not mix by multiplication, on a dark background for example.
  • exactDotNumber option of DotDensityStyle, for dotNumber dots exactly instead of one more.
  • filter, heightClass and tanaka options of LegoStyle.getCategory, for bricks whose colour is a category and whose height is another variable.

Fixes

  • GPUGridRenderer never drew a large one-file dataset (CSVGrid), since 3.4.0. A built one-file dataset is also no longer built again on each draw.
  • GPUGridRenderer put every cell of the tiles that came in during a movement in the last colour class when the map had last stopped where nothing was loaded yet: their view scale had been worked out from no cells.
  • On a touch screen, after a tap on a cell, its tooltip and rectangle came back at the place of the tap after every pan or zoom with the fingers, and stayed when a panel of the page was scrolled. Only a mouse or a pen now sets where the pointer is, and any touch ends the hover; a tap on a cell still shows its tooltip. Nothing changes with a mouse.
  • TimeSeriesStyle took a value of the number 0 as no data, which broke the line (the text '0' of a CSV file was not affected).

Examples

  • The ships demo has 14 views of its data, and uses maxCells and blendMode.

See the changelog and the reference.