SimonBuxx / LogiJS

Discover and create logic circuits
https://logijs.com
GNU General Public License v3.0
42 stars 6 forks source link

TODO: Implement selecting #22

Closed SimonBuxx closed 3 years ago

SimonBuxx commented 6 years ago

There's a button for selecting, but it currently has no functionality. Users should be able to select parts of the sketch to delete, copy or move them. Could be hard.

SimonBuxx commented 6 years ago

I'm on it. Objects can be selected by now, but not deselected at the moment. Replacing the selected objects (in the code) causes a few bugs with certain customs not working right. But moving and deleting will be implemented soon (hopefully). There could be smaller problems with copying, but nothing too bad. I'll tackle that when everything else about selection is done.

gatchrat-zz commented 6 years ago

Is this comment up-to-date ? I think moving and deselecting works just fine

SimonBuxx commented 6 years ago

Moving is now implemented and also works with undo/redo. Closing this one after copy and delete are implemented

gatchrat-zz commented 6 years ago

Delete is now implemented, only copy left

SimonBuxx commented 6 years ago

Selection-deleting wires is more complicated than I thought, as the selection only contains the bundled wires but you have to also delete the single segments from the array. Other elements can be deleted now, but only some of them can be un/redone at the moment.

SimonBuxx commented 6 years ago

I'm working on selection-deleting wires, should be finished soon, incl. un/redo.

SimonBuxx commented 4 years ago

Select Update

image

SimonBuxx commented 4 years ago

Selection Delete is now implemented.

Hope it works out fine, didn't do too much testing yet.

Last thing is copy, got a lot to make out for that one, like maintaining unique IDs when copying objects, loading customs etc. So don't expect that update to come tomorrow.

SimonBuxx commented 4 years ago

Copy feature is half-way done. I'll commit when everything is ready. At the moment, you can copy/paste sketch parts and undo pasting. Redo and bug testing is coming up next.

SimonBuxx commented 3 years ago

The copy feature is now live but in a beta-state. There are problems with undo/redo in some cases where elements get confused with each other or more undo/redo actions get logged than actually happened. I'll fix this asap. In the mean time, it's best to not use copy undo/redo.

SimonBuxx commented 3 years ago

Fixed an important copy undo/redo bug today. Didn't do too much bug testing though for copy. Anyway, I will now close this for now.