Skip to content

fix: filter stacking bug#199

Merged
flekschas merged 3 commits intomainfrom
flekschas/fix-filter-stacking-bug
Nov 23, 2024
Merged

fix: filter stacking bug#199
flekschas merged 3 commits intomainfrom
flekschas/fix-filter-stacking-bug

Conversation

@flekschas
Copy link
Owner

This PR fixes the stacking issues when filtering points

Description

What was changed in this pull request?

This PR ensures that the order of points to be filtered cannot be altered externally. E.g., scatterplot.filter([0, 1]) and scatterplot.filter([1, 0]) is now going to give the same results. Previously, the order of point IDs defined the drawing order.

Why is it necessary?

Fixes #197

Example

Following the example from #197, when filtering by scatterplot.filter([0, 1]), the following happened:

Previously

Screen.Recording.2024-11-22.at.1.33.32.PM.mov

Now

Screen.Recording.2024-11-22.at.1.34.10.PM.mov

Checklist

  • Provided a concise title as a semantic commit message (e.g. "fix: correctly handle undefined properties")
  • CHANGELOG.md updated
  • Tests added or updated
  • Documentation in README.md added or updated
  • Example(s) added or updated
  • Screenshot, gif, or video attached for visual changes

@flekschas flekschas merged commit 2bb3704 into main Nov 23, 2024
@flekschas flekschas deleted the flekschas/fix-filter-stacking-bug branch November 23, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

filter() seems to change stacking of points in certain cases

1 participant