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.

  • image

The ā€œbounding boxā€ when a range is selected or a line is drawn does not match the actual appearance of the box.

  • image
  • 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!

  • image 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.

image

  • Bug.
  • Fixed.
    • image
    • 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.