Fix: Clipping bug
This commit is contained in:
@@ -74,6 +74,8 @@ and scaling becomes ineffective after the error.
|
||||
practical visible bounds and appear clipped.
|
||||
12. Ferris/demogorgon packaged backgrounds are gradient-magenta (not exact `#FF00FF`), requiring a
|
||||
border-connected magenta-family mask instead of exact-key assumptions.
|
||||
13. Clipping persisted because sprite rendering scale followed snapshot/requested scale directly
|
||||
instead of fitting to the actual post-clamp window size.
|
||||
|
||||
## Fix Plan
|
||||
|
||||
@@ -142,6 +144,12 @@ Implemented:
|
||||
17. `frontend/tauri-ui/src/renderer/pixi_pet.ts`
|
||||
- added deterministic border-connected strong-magenta flood-fill cleanup pass so non-`#FF00FF`
|
||||
gradient backgrounds are removed consistently in packaged ferris/demogorgon atlases.
|
||||
18. `frontend/tauri-ui/src/main.tsx`
|
||||
- changed scale flow to window-driven fit semantics: scale request resizes/clamps main window and
|
||||
then persists effective scale derived from applied window size.
|
||||
19. `frontend/tauri-ui/src/renderer/pixi_pet.ts`
|
||||
- renderer sprite scale is now derived from current canvas/window size each layout pass, removing
|
||||
clipping caused by mismatch between requested scale and bounded window dimensions.
|
||||
|
||||
## Verification
|
||||
|
||||
@@ -181,6 +189,8 @@ Implemented:
|
||||
- `2026-02-14 00:00` - codex - `Fix Implemented` - added integer-safe physical setPosition and HSV magenta cleanup strategy.
|
||||
- `2026-02-14 00:00` - reporter - `In Progress` - reported remaining default clipping and ferris magenta background persistence.
|
||||
- `2026-02-14 00:00` - codex - `Fix Implemented` - tightened work-area scale guard and added border-connected strong-magenta cleanup pass.
|
||||
- `2026-02-14 00:00` - reporter - `In Progress` - reported clipping still present on `default` and `demogorgon` after prior fixes.
|
||||
- `2026-02-14 00:00` - codex - `Fix Implemented` - moved tauri scale to window-driven effective-fit persistence and renderer fit-to-window scaling.
|
||||
|
||||
## Closure
|
||||
|
||||
|
||||
Reference in New Issue
Block a user