← 返回首页
Refactor selector drag behavior by almarklein · Pull Request #800 · fastplotlib/fastplotlib · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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 commented Apr 15, 2025
edited
Loading

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 Bot commented Apr 15, 2025
edited
Loading

Copy link
Copy Markdown

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

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 Show resolved Hide resolved

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

this is great thanks!

kushalkolar merged commit c95ed34 into main Apr 16, 2025
almarklein deleted the selector-move branch April 17, 2025 06:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.