Files
paint-ui/store/index.ts
Sebastian Krüger 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

17 lines
526 B
TypeScript

export * from './canvas-store';
export * from './layer-store';
export * from './tool-store';
export * from './filter-store';
export * from './history-store';
export * from './color-store';
export * from './selection-store';
export * from './transform-store';
export * from './shape-store';
export * from './text-store';
export * from './ui-store';
export * from './toast-store';
export * from './context-menu-store';
export * from './guides-store';
export * from './recent-files-store';
export * from './brush-presets-store';