Files
paint-ui/store
Sebastian Krüger bd6fd22522 feat(phase-13): implement selection refinement operations
Add comprehensive selection refinement tools for precise selection editing.

Features:
- Expand selection by N pixels using dilation algorithm
- Contract selection by N pixels using erosion algorithm
- Feather selection with Gaussian blur
- Invert selection (already existed)
- All operations work on selection mask data
- Morphological operations:
  * Expand: Dilate mask by checking max neighbor values
  * Contract: Erode mask by checking min neighbor values
  * Feather: Apply separable Gaussian blur (horizontal + vertical)

Changes:
- Updated store/selection-store.ts with three new functions:
  * expandSelection(pixels) - Dilate selection
  * contractSelection(pixels) - Erode selection
  * featherSelection(radius) - Gaussian blur
- Implements proper image processing algorithms
- Works on Uint8Array mask data
- Updates feather property in selection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 20:28:02 +01:00
..