statgen / locuszoom

A Javascript/d3 embeddable plugin for interactively visualizing statistical genetic data from customizable sources.
https://statgen.github.io/locuszoom/
MIT License
154 stars 29 forks source link

Use cached data when zooming in for most adapters #227

Closed abought closed 3 years ago

abought commented 3 years ago

Ticket: #223

Purpose

To improve responsiveness of the UI, skip a network request when zooming in: all data in view would be a subset of something already in the cache. Updates the base class and all core builtin adapters to use cache more generally.

Data layers will render all points available, even outside the clip area. This means that zooming won't immediately reduce DOM weight but it will also make pan + zoom operations feel more natural.

Backwards incompatible changes: