Sebastian Krüger
4ddb8fe0e3
feat(phase-13): implement layer masks foundation for non-destructive editing
Add comprehensive layer mask system with core functionality for non-destructive editing.
Features:
- LayerMask interface with canvas, enabled, and inverted properties
- Layer interface updated with mask property
- Full mask management in layer store:
* addMask() - Creates white mask (fully visible)
* removeMask() - Removes mask from layer
* toggleMask() - Enable/disable mask
* invertMask() - Invert mask values
* applyMask() - Apply mask to layer and remove
- Duplicate layer now clones masks
- Grayscale mask system (white=reveal, black=hide)
Changes:
- Updated types/layer.ts with LayerMask interface
- Modified Layer interface to include mask property
- Updated store/layer-store.ts:
* Added mask property initialization to createLayer
* Added 5 new mask management functions
* Updated duplicateLayer to clone masks
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 19:57:49 +01:00
..
2025-11-21 09:17:12 +01:00
2025-11-21 01:55:28 +01:00
2025-11-21 15:52:35 +01:00
2025-11-21 02:12:18 +01:00
2025-11-20 21:24:59 +01:00
2025-11-21 15:52:35 +01:00
2025-11-21 17:42:36 +01:00
2025-11-21 19:57:49 +01:00
2025-11-21 16:08:24 +01:00
2025-11-21 16:19:57 +01:00
2025-11-21 17:16:06 +01:00
2025-11-21 09:03:14 +01:00
2025-11-21 14:31:47 +01:00
2025-11-21 15:42:50 +01:00
2025-11-21 19:48:00 +01:00
2025-11-21 02:36:50 +01:00
2025-11-21 09:03:14 +01:00