flekschas / regl-scatterplot

Scalable WebGL-based scatter plot library build with Regl
https://flekschas.github.io/regl-scatterplot/
MIT License
185 stars 21 forks source link

fix: allow to filter out all points by calling `filter([])` #127

Closed flekschas closed 1 year ago

flekschas commented 1 year ago

This PR enables filtering out all points by calling scatterplot.filter([]);

Description

What was changed in this pull request?

This PR enables filtering out all points which was previously not possible. To check if any point filter have been applied, this PR also exposes isPointsFiltered via the get() function.

Why is it necessary?

Fixes #122

Checklist

flekschas commented 1 year ago

@insertmike for awareness. This should fix the issue you reported.