-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a "select" mode #10
Comments
Regarding the lookup mechanism, I was thinking of creating a new This data structure can also be used to make rendering easier by clipping objects that lie off screen. |
I think I found a nice crate for this: https://crates.io/crates/quadtree_rs I'm thinking of implementing this on top of the
EDIT: |
Yeah... I'm not a massive fan of that API either. Something similar to We need the ability to associate a I have a feeling in the long run we'll end up implementing our own
This gets problematic because you need to know the window dimensions in pixels. I don't think we currently do that, although it shouldn't be too hard to create a That said, we kinda do this already in an ad-hoc way. Turning it into a proper |
I'll give I agree that in the long run an arcs specific implementation would be nice, especially since the implementations I could find aren't too long (under 500 loc) |
I see some problems:
Other then that, it will work for now! I can submit a PR later where we can discuss further implementation details ;) |
This follows on from #9 (comment):
We need an interactive mode which lets us mark an object as selected and move them around the drawing by clicking and dragging.
This will necessitate a couple new concepts on top of #9:
Selected
component (seespecs::storage::NullStorage
)SelectMode
itselfThe text was updated successfully, but these errors were encountered: