Commit b62714a
fix(ui): center sprite overlay rotation, tighten tests
- BlockSprite now rotates around center (transformOrigin: center)
matching the renderer's overlay_sprite_with_rotation centering.
Fixes visual offset between UI overlay and rendered output for
rotated text blocks.
- 90°/180° overlay tests now assert non-transparent pixels exist.
- 90° expand test uses exact assert_eq (fast path, no resampling).
Co-authored-by: DeepSeek V4 <deepseek@v4.ai>1 parent a66f011 commit b62714a
2 files changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1597 | 1597 | | |
1598 | 1598 | | |
1599 | 1599 | | |
1600 | | - | |
1601 | 1600 | | |
1602 | 1601 | | |
1603 | | - | |
1604 | 1602 | | |
| 1603 | + | |
1605 | 1604 | | |
1606 | 1605 | | |
1607 | 1606 | | |
| |||
1610 | 1609 | | |
1611 | 1610 | | |
1612 | 1611 | | |
1613 | | - | |
| 1612 | + | |
1614 | 1613 | | |
1615 | 1614 | | |
1616 | 1615 | | |
| |||
1630 | 1629 | | |
1631 | 1630 | | |
1632 | 1631 | | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
1642 | 1643 | | |
1643 | 1644 | | |
1644 | 1645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
317 | 321 | | |
318 | 322 | | |
319 | 323 | | |
| |||
323 | 327 | | |
324 | 328 | | |
325 | 329 | | |
326 | | - | |
327 | | - | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
0 commit comments