fix: add missing JSDoc, return types, and as-any comments to layout engines

This commit is contained in:
Ilia Mashkov
2026-04-12 09:51:36 +03:00
parent 49822f8af7
commit 4b017a83bb
3 changed files with 78 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ describe('CharacterComparisonEngine', () => {
expect(result.totalHeight).toBe(0);
});
it('uses worst-case (FontB) width to determine line breaks', () => {
it('uses worst-case width across both fonts to determine line breaks', () => {
// 'AB CD' — two 2-char words separated by a space.
// FontA: 'AB'=20px, 'CD'=20px. Both fit in 25px? No: 'AB CD' = 50px total.
// FontB: 'AB'=30px, 'CD'=30px. Width 35px forces wrap after 'AB '.