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>
9.2 KiB
9.2 KiB