Skip to content

Refactor selector drag behavior#800

Merged
kushalkolar merged 3 commits into
mainfrom
selector-move
Apr 16, 2025
Merged

Refactor selector drag behavior#800
kushalkolar merged 3 commits into
mainfrom
selector-move

Conversation

@almarklein

@almarklein almarklein commented Apr 15, 2025

Copy link
Copy Markdown
Collaborator

Ref #781

Refactor to move the selectors based on their original value, instead of using incremental deltas. This makes it much easier to implement natural behavior when the movement is clipped by the limits.

One question: What's up with the PolygonSelector, I see no example of it, and it also does not implement _move_graphic.

@github-actions

github-actions Bot commented Apr 15, 2025

Copy link
Copy Markdown

📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/selector-move

@kushalkolar

Copy link
Copy Markdown
Member

The polygon selector module in there was a prototype, it probably has to be rewritten.

Comment thread fastplotlib/graphics/selectors/_base_selector.py Outdated

@kushalkolar kushalkolar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great thanks!

@kushalkolar kushalkolar merged commit c95ed34 into main Apr 16, 2025
@almarklein almarklein deleted the selector-move branch April 17, 2025 06:56
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