Hajk icon indicating copy to clipboard operation
Hajk copied to clipboard

Sketch: make it possible to control the zIndex of features

Open jacobwod opened this issue 2 years ago • 1 comments

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 avatar Sep 16 '22 05:09 jacobwod

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

Hallbergs avatar Sep 16 '22 06:09 Hallbergs

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

jesade-vbg avatar Nov 16 '22 14:11 jesade-vbg

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

Of course! No probs!

Hallbergs avatar Nov 16 '22 14:11 Hallbergs

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.

jesade-vbg avatar Nov 16 '22 14:11 jesade-vbg

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!

Hallbergs avatar Nov 16 '22 14:11 Hallbergs

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

jesade-vbg avatar Nov 16 '22 15:11 jesade-vbg

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

No no! Not at all!

Hallbergs avatar Nov 16 '22 15:11 Hallbergs

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 avatar Nov 25 '22 13:11 jesade-vbg

Here is my suggestion. Feedback please.

image

jesade-vbg avatar Nov 28 '22 14:11 jesade-vbg

Here is my suggestion. Feedback please.

image

I like it!

Hallbergs avatar Nov 29 '22 05:11 Hallbergs

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

jacobwod avatar Nov 29 '22 06:11 jacobwod