Repository navigation
v1.1.0
Fixed
m-kanbun: reading-order numbers of two or more digits (10 and up) no longer spill out of their box into the character next to them. Only their font size is reduced (for example 24 px to 18.5 px at the default size) so that the text fits the box; the box, its position and everything about one-digit numbers are unchanged (a lesson whose kanbun has at most nine reading events draws the same pixels as before). This changes how existing two-digit numbers are drawn, so it needs a minor version at least. Every reading-order number also carriesdata-annot(the small-annotation mark of Egatari Studio's quality check, which then does not apply its 24 px minimum text size to it). Checked bytools/test-kanbun-num.mjsm-kobun: the conjugation card the viewer opened also closes when the runtime passesctx.resettorender(Egatari Studio re-entering a step after the viewer touched a component; contract §3), as it already did whenkchanges. Withoutctx.resetand with the samekthe card stays open. Normal stepping draws the same pixels as before. Checked bytools/test-kobun-reset.mjsm-codetree:renderno longer leaves the state of an earlier call on elements that are not drawn (opacity 0), so the DOM, attributes included, no longer depends on the order ofrendercalls. What was left: the position (x1 y1 x2 y2,x,y) and the bit of the dashed branch and the×for an unknown code, the bracket path (d), the swatch and labelxand the label text of a pixel run that is not shown yet, and the text of the "so far" line above the window. They are now removed (or emptied) when not drawn, which is how they were created. Nothing visible changes: the screenshots of the demos at every step are byte-identical to before. Checked bytools/test-codetree-dom.mjs(render(a)thenrender(b)against a freshrender(b): same DOM, same pixels)
sha256 13ed148475314b43d7f90b0a51b1426da24a8c03b195366d1dcb0916b30e0494 egatari-components-v1.1.0.tar.gz