fix: add missing JSDoc, return types, and as-any comments to layout engines
This commit is contained in:
@@ -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 '.
|
||||
|
||||
Reference in New Issue
Block a user