Skip to content

Selection vector improve - #1061

Merged
kushalkolar merged 12 commits into
ndwidgetfrom
selection_vector_improve
Aug 6, 2026
Merged

Selection vector improve#1061
kushalkolar merged 12 commits into
ndwidgetfrom
selection_vector_improve

Conversation

@apasarkar

@apasarkar apasarkar commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

closes #1047.

Concrete changes:

  • Includes logic to block re-entrance when selections are changed
  • Includes more compact code for adding selectors to make things more declarative. Now the user just provides the selector + a global index --> local index mapping. This mapping is given by a 1D array (or a dictionary). The inverse mapping and event handler logic is dealt with internally within SelectionVector.
  • Fills in missing functionality: clear selectables, remove, remove_selector

@apasarkar
apasarkar marked this pull request as draft June 11, 2026 05:16
Comment thread fastplotlib/graphics/selectors/_highlight_selector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
Comment thread fastplotlib/graphics/selectors/_selection_vector.py
Comment thread fastplotlib/graphics/selectors/_selection_vector.py
Comment thread fastplotlib/graphics/selectors/_selection_vector.py Outdated
@kushalkolar
kushalkolar marked this pull request as ready for review August 4, 2026 19:26
@kushalkolar
kushalkolar merged commit 852c0a2 into ndwidget Aug 6, 2026
@kushalkolar
kushalkolar deleted the selection_vector_improve branch August 6, 2026 20:58
@kushalkolar kushalkolar mentioned this pull request Aug 7, 2026
2 tasks
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.

2 participants