Today's Picture of the Day
Update position of child element B
What should happen when a child element is moved after the group is created? Currently, bounding boxes are drawn properly, but the offset of child element drawing is misaligned.
A: One solution is to "modify the parent's POSITION when the child element moves
B: There is also a way to adjust at rendering time
This is something that will be needed after "drag and move child elements after creating a group" is implemented, so let's hold off and move on.
Margin if titled
I had the border white in Regroup.
This development is more secure when refactoring because I'm using Cypress to check the state I want to check, check the screen, see it's what I expect, and then change the code to check it...and so on. But I still haven't added event handlers or anything for human manipulation. Is this okay?
Write down the functionality needed to make it actually usable. - MovideaFunctionality required to make it actually usable
I was going to put off the issue of offset shifting when moving a child element, but I thought I'd put it off. I thought it would be better to write the test in a simple state, so we'll do that first thing tomorrow. If you want to change the way you do something later, it should be easier to do it if you have a test.
This page is auto-translated from /nishio/2021-07-13Movidea開発日記 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.