prev Kozaneba Development Diary 2023-01-25
2023-02-02 Itās a pretty destructive rewrite, but at least I can now observe what happens when I turn off automatic font size adjustment.
The ābounding boxā when a range is selected or a line is drawn does not match the actual appearance of the box.
- If we want to solve this, we need to get the actual size by accessing the DOM by those codes, or we need to get it at the time of rendering.
2023-02-03 I tentatively named it āFixed font size functionā because it is difficult to refer to a concept without giving it a name.
- This is hard to see the value to the user, so we will eventually rename it.
Future Work
- Fixed font size is currently being experimented with in a pretty destructive rewrite.
- Theyāre achieving this by breaking the original font size adjustment feature.
- I challenge you to make this a feature toggle.
- Once itās done, make it āa feature that is turned off for the general public but can be turned on for advanced users because it causes problems with range selection and line mergingā.
It could coexist with automatic font size adjustment!
-
feature toggle
kozaneba.constants.exp_no_adjust = true
Kozanegoās flag for whether to turn off auto-adjustment is āwhether the first character is # or not.ā
Letās use it in this state for now.
- Bug.
- Fixed.
- No release yet.
Notes on thoughts
- User scripts, saved to browser local storage, disappeared.
- Well, Iām saving it separately as a sample, so thereās no damage, but itās hard to tell with that kind of behavior.
- It is technically possible to store the settings tied to the user, the reason why we havenāt done it is because there was a need for ādifferent settings for different devicesā like a Macbook with a touchpad and a Windows with a wheel mouse.
- However, there is a sense that only flags are needed to separate settings for each machine.
- I havenāt tried it myself because it doesnāt work properly on my iPad after all, but Iāve also accessed it from my iPad and iPhone.
- For example, you could just add what comes to mind on your iPhone while walking around, and then organize it on your PC when you get home, like you can see it but not edit the map.
- It would be a good idea to check for duplicates when they are automatically added, such as in the Scrapbox Kozane expansion.
- In other words, if you put one up and expand it, itās great for organizing your Scrapbox! Like thisā¦
- I have a presentation next week and will use this to organize the information.
This page is auto-translated from /nishio/Kozanebaéēŗę„čØ2023-02-03 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.