Coding 2024-09-30

By Max Woerner Chase

I got to work on the stuff I was talking about last night. At this point, the stuff that's missing is:

That last one is somewhat more complicated than "Just specify the coordinates, what's the problem", because I want to have some offset between the bottom of the text and the bottom of the hexagonal cell, and I want the text to be centered horizontally relative to the hex.

I haven't really looked into the details of SVG layout and transforms, and I'm hoping that there's a declarative way to handle this, or at the very least something that means I don't need to know the height and width of arbitrary text.

...

Hm, looks like I want to do something with text-anchor and maybe dominant-baseline. ... Huh... It looks like I made some bad assumptions about how text works in SVG, which should mean that this will be easier than I feared, but I should still learn about dominant-baseline in the context of putting text elsewhere in the cell.

Anyway, I'm going to put all of that off until after I've done the rest of the stuff I listed above. And I'm going to do the rest of the stuff I listed above... later. Wind down properly now.

Good night.