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

Implement "Send to back/front" #28

Open
3 of 5 tasks
pobch opened this issue Jul 15, 2022 · 0 comments
Open
3 of 5 tasks

Implement "Send to back/front" #28

pobch opened this issue Jul 15, 2022 · 0 comments
Labels
feature New features

Comments

@pobch
Copy link
Owner

pobch commented Jul 15, 2022

Need this feature for an image

TODOs

Separate the following tasks into multiple PRs.

  • When finding a single element by mouse position, start finding it from the last index instead of the first index.
  • Use timestamp to generate each element id instead of using the index number
  • There should be no removed element anymore. Instead, actually remove it from the array.
  • Send to back = store that element, splice to remove the element from an array, put the stored element to the first index by unshift.
    • Create a new mode: "moveElementsToFirstIndex" for commitNewSnapshot() inside useHistory()
  • Send to front = store that element, splice to remove the element from an array, then push the stored element into the array.
    • New mode "moveElementsToLastIndex"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features
Projects
None yet
Development

No branches or pull requests

1 participant