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

feature requests: mouseover preview for the 'add' function, undo/redo #22

Open
wassfila opened this issue Jun 15, 2022 Discussed in #21 · 1 comment
Open

feature requests: mouseover preview for the 'add' function, undo/redo #22

wassfila opened this issue Jun 15, 2022 Discussed in #21 · 1 comment
Labels
enhancement New feature or request

Comments

@wassfila
Copy link
Member

Discussed in #21

Originally posted by raminrahni June 14, 2022
Thank you so much for creating and sharing this wonderful tool! It's incredibly useful. Are there any plans to implement a preview feature for the 'add' function? It would be super helpful to know where the cell is going to be cut before clicking, especially in the absence of an undo function (another feature that would be extremely useful). Thanks!

@wassfila wassfila added the enhancement New feature or request label Jun 15, 2022
@wassfila
Copy link
Member Author

wassfila commented Jun 15, 2022

I write some notes here on to how to perform these features:

Preview

I hesitate if that could be accepted by all users as default mode otherwise create a checkbox to enable/disable it.

  • with add mode, on area enter create the new cell immediately and switch to move (implicitly without showing the mode change in the selection)
  • on click : stop the move
  • on area exit : remove the new cell that stayed on the edge

Undo

Easy one :

  • this.array.pop()
  • also possibly if we keep the cell count in sync with the seeds slider, then moving it backward will be removing seeds in the creation order, but the slider will sample new random seed on increase
  • an undo, redo slider could execute the history sequence in the right order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant