from 2021-09-07
Write down what you do.
- Python script to generate JSON for import
- Add Create Group
- Change the sample source code visualization to one that uses groups.
- How many sides will there be?
- Support for item deletion
- physical operation
- Operation is prohibited during execution.
- Pin, unpin
- Introduce group contraction?
Today weâre going to improve the source code visualization functionality - first, weâll be able to create groups from Python scripts.
- Pomodoro start
- I can now create groups.
Next, start Pomodoro, which represents folder hierarchy as a group.
- end
- The Python library was badly designed and found to be difficult to use.
- I had separated the creation of instances and adding to Ba, but the state of not creating and adding is unnatural in the first place
Change design, start Pomodoro
- I wrote tests in pytest, watched them in pytest-watch, and refactored them.
- I just took a sip of Coke and did 10 squats.
The next step is to create a visualization code with this new design.
-
start
-
Without the arrow, it worked, but the arrow is mysteriously undefined.
-
Ten incline push ups and a sip of coke.
-
Arrows to the contents of the closed group
- Do you want it to be an arrow to the group or do you want to turn it off?
- It would be bad if it disappeared.
Letâs fix the bugs⊠start the Pomodoro.
-
Uh, NaN.
-
Should it be reproduced with smaller data?
-
No type error via JSON, so when reading Python-generated material, it could be an incorrect value.
- If undefined is included, an error will occur at the time of saving to Firestore.
- Should there be runtime checks on import?
Start Pomodoro to make small samples and fix bugs.
- Fixed a bug.
Mm, it will.
I opened a relatively better one.
- Hmmm, itâs obvious that the selection is reset by an event and that the selection information is obtained from the drawing part, so this reference is necessaryâŠ
The lines have been thinned and transparency has been added so that strongly related objects appear darker.
Relationship between Canvas and Menu, what?
- Oh, the utility function is still in here.
- Itâs important to be able to see the thick and thin, because a thick relationship is like, âWell, thatâs just the way it is.â When a thin relationship is in a strange place, it leads to the discovery of something that shouldnât be there.
Chiru-chiruâŠwow!
- Physics, when there is a closed group, the closed group should move, not the contentsâŠ
- fix pomodoro physicsâŠ
- When a group is closed, the group is the target of the move.
- Pinning function.
- Pomodoro done
Ah, well, the language specification doesnât distinguish whether itâs referenced from outside the directory or only from inside.
Even if we were to use style B because type A is complicated, the center circle would be âsomething that interacts with a great many thingsâ.
- It may be necessary to highlight the arrows that go in and out of the selected object, or conversely, to reduce the presence of the arrows that go in and out of the selected object and do not participate in the physics calculations
Turn off these four hubby-ish things and it will clear up.
- The rest looks like this
When I first visualized it, I thought, âI donât understand anything!â But when I opened the file and checked it, I found that I had written it wrong after all.
- When I wanted to use the logic that A was using and B wanted to use it, I bundled it into a function or module and called it from B, but that wasnât enough.
- The correct answer was to bundle them together as in #3.
For example, why does the Physics directory of physics operations interact with other things?
- So three things: âcloud saving must be stopped during physics,â âpinning when position is determined by dragging,â and âthereâs the ability to unpin from the selection menu.â
If you want to tinker with it, click here. It will not be saved, so you can tinker around as you like. However, your MacBook will be hot.
-
https://kozaneba.netlify.app/#view=ycoPTxkIAT2PfKhVHGFi Here is the code to be analyzed, and the script used for the analysis is in the python directory
-
https://github.com/nishio/kozaneba/tree/f4c3233e3dedc424f16bd51dce5b721845926a5d
This page is auto-translated from /nishio/Kozanebaéçșæ„èš2021-09-08 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.