Apostolique / Mitten

Infinite canvas drawing application.
https://apos.itch.io/mitten
MIT License
94 stars 5 forks source link

[Feature Request] Will there ever be a select to move or resize feature? #13

Open 1nuno opened 5 months ago

1nuno commented 5 months ago

First of all this software is awesome I have been using it for a couple months right now. I was wondering if there will ever be a feature that allows selection in order to move or resize. I believe that's really the only thing that's missing for it to be even better.

Apostolique commented 5 months ago

I could think about it.

Right now, the app is mostly just a list of lines. Line 1, line 2, line 3, etc. Erasing is simply adding a line that has the same color as the background.

For redo and undo, all I do is draw up to line X, for example [line 1, line 2, line3] becomes [line 1, line 2] line 3. This allows me to support undo and redo all the way back to your first stroke without using much extra memory. There's a bit of bookkeeping for grouping lines.

Allowing moving or resizing wouldn't work in the current system without adding something new.

There's also the matter of the selection UX itself. Should it work with a rectangle selection and then everything gets selected. What about lines that overflow the selection bounds? Do lines get moved as a whole or they should be spliced?

1nuno commented 5 months ago

Oh, I see, so its not as straightforward as it may seem. I have used a couple more apps of this infinite canva style and what they usually do is a simple box selection that selects the whole line even if part of the lines are outside the selection area and I believe that works pretty well.

Regardless, even without the selection feature the app is still really good, it feels fast and smooth compared to the others available which feel a bit junky at times. Anyways, Thanks for the clarification.