Skip to content
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

Sketch: make it possible to control the zIndex of features #1176

Closed
jacobwod opened this issue Sep 16, 2022 · 11 comments
Closed

Sketch: make it possible to control the zIndex of features #1176

jacobwod opened this issue Sep 16, 2022 · 11 comments
Assignees
Labels
new feature Request for adding/changing functionality plugin:draw Functionality and features of the Draw plugin
Milestone

Comments

@jacobwod
Copy link
Member

Currently the features zIndex seems to be determinate by creation time: most recent features are inserted at top of the stack.

It would be very useful if the user could control this somehow. One way is to increment the zIndex during an edit/move operation, so that the edited feature ends up on top. Another option could be a button inside the Edit window (something like "Move to top" or similar).

image

@jacobwod jacobwod added the new feature Request for adding/changing functionality label Sep 16, 2022
@jacobwod jacobwod added this to the 3.x milestone Sep 16, 2022
@jacobwod jacobwod added the plugin:draw Functionality and features of the Draw plugin label Sep 16, 2022
@Hallbergs
Copy link
Member

I vote for both options! They should be really simple to implement

@jesade-vbg
Copy link
Contributor

If @Hallbergs don't mind, I can have a look at this.

@Hallbergs
Copy link
Member

If @Hallbergs don't mind, I can have a look at this.

Of course! No probs!

@jesade-vbg jesade-vbg self-assigned this Nov 16, 2022
@jesade-vbg
Copy link
Contributor

Good, I think it's a good way to get familiar with DrawModel. It might be simple for the one who coded it from the beginning, but for me the DrawModel seems massive :) I'll keep you updated.

@Hallbergs
Copy link
Member

Good, I think it's a good way to get familiar with DrawModel. It might be simple for the one who coded it from the beginning, but for me the DrawModel seems massive :) I'll keep you updated.

Yes, it got a bit messier than i would have liked.. :P I'll be happy to help if anything is strange/wrong!

@jesade-vbg
Copy link
Contributor

Sorry if it sounded negative, it was not my intention :) Just alot of functionality. Looks good!

@Hallbergs
Copy link
Member

Sorry if it sounded negative, it was not my intention :) Just alot of functionality. Looks good!

No no! Not at all!

@jesade-vbg
Copy link
Contributor

I think, "moving to top" as soon as editing would be weird, and would be easy to destroy sketches. My suggestion would be to have buttons in edit (as mentioned). Buttons: [to back][-1][+1][to front]. I will post UI-example when I have something worth posting.

@jesade-vbg
Copy link
Contributor

Here is my suggestion. Feedback please.

image

@Hallbergs
Copy link
Member

Here is my suggestion. Feedback please.

image

I like it!

@jacobwod
Copy link
Member Author

Just the way I'd imagine it too, go for it! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Request for adding/changing functionality plugin:draw Functionality and features of the Draw plugin
Projects
None yet
Development

No branches or pull requests

3 participants