|
|
40f624f5b7
|
feat(phase-13): implement brush presets system
Add comprehensive brush presets system for saving and loading brush configurations.
Features:
- Brush presets store with persistence
- 5 default presets included:
* Hard Brush - Solid, precise edges
* Soft Brush - Smooth, gradual falloff
* Airbrush - Low opacity, soft flow
* Pencil - Tiny, hard, precise
* Ink - Medium, slightly soft
- Preset management functions:
* addPreset() - Save current brush settings
* removePreset() - Delete preset
* updatePreset() - Modify preset
* setActivePreset() - Select active preset
* getPreset() - Get preset by ID
* clearPresets() - Reset to defaults
- Each preset stores:
* size, opacity, hardness, flow, spacing
* Unique ID and creation timestamp
- localStorage persistence
- Active preset tracking
Changes:
- Created store/brush-presets-store.ts
- BrushPreset interface with settings
- Exported from store/index.ts
- Ready for UI integration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-21 20:30:07 +01:00 |
|