# Changelog

All notable changes to `@nice2dev/ui-graphics` will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---

## [1.1.0] — 2026-06-15

### 🚀 Major Feature Release

Massive expansion: 4 new editors, physics engine, integrations, collaboration, and significant UX improvements.

### New Editors

- **NiceIconEditor** — SVG icon design with grid alignment, variant support (outline/filled/duotone), React component export
- **NiceUIDesigner** — drag & drop UI builder with 12 component types and React/TSX code generation
- **Nice3DTexturePainter** — UV texture painting with layer support, brush tools, blend modes
- **NiceFontEditor** — glyph editor with Unicode mapping, SVG font export, text preview

### Animation

- **Physics simulation** — Verlet integration engine with ragdoll (14-bone) and cloth (spring-mass grid)
- **Motion path editor** — cubic Bézier paths with arc-length parameterization, preset paths (linear, circular, figure-8)
- **Lottie/Bodymovin export** — export animations to Lottie JSON format
- **Spine export** — export to Spine 4.1 JSON format for game engine integration

### Shared Editor Features

- **Plugin system** — extensible architecture with tool/filter/exporter/panel/menu registration and React context
- **Visual undo/redo** — timeline-based history with thumbnail previews and jump-to-any-point
- **Customizable shortcuts** — remappable keyboard shortcuts with localStorage persistence
- **External drag & drop** — drop files from desktop with MIME validation and image conversion
- **RTL UI support** — full right-to-left layout with CSS logical properties and auto-detection

### UX Improvements

- **Zoom navigator (minimap)** — draggable viewport overview with position presets
- **Grid, guides & rulers** — configurable grid, horizontal/vertical rulers, draggable guides with snap
- **Color blindness simulation** — 9 vision type simulations (Machado et al.), canvas filter + SVG filter generation
- **Dark/light theme** — 20+ color tokens, auto system theme detection, localStorage persistence

### Integrations

- **Unsplash/Pexels** — stock image search providers
- **Adobe Creative Cloud** — OAuth connector with library import
- **Figma** — file import with SVG extraction and plugin code export
- **Template library** — searchable template system with categories
- **AI image generation** — OpenAI DALL-E 3, Stability AI, and custom provider support

### Collaboration

- **Real-time editing** — WebSocket transport with cursor/selection sync and operation broadcasting
- **Comments & annotations** — threaded comments anchored to canvas coordinates
- **Version history** — snapshot system with named versions and thumbnail previews

### Bug Fixes

- **Retina canvas** — proper devicePixelRatio scaling for sharp rendering on HiDPI displays
- **Vector performance** — SpatialHashGrid for O(1) spatial queries with >100 shapes
- **Animation memory leak** — AnimationCleanup utility for tracking and disposing RAF/timer resources

---

## [1.0.0] — 2026-03-17

### 🎨 Initial Release

First stable release of `@nice2dev/ui-graphics` — pixel, vector, photo & animation editors for React.

### Features

- **NicePixelEditor** — full pixel art editor with layers, palette, tools, animation timeline
- **NiceVectorEditor** — SVG-based vector drawing with shapes, paths, groups, boolean ops
- **NicePhotoEditor** — image editing with filters, adjustments, crop, rotate, resize
- **NiceAnimationEditor** — frame-by-frame and tweened animation with onion skinning
- **NiceAnimatedPerson** — rigged character with poses, limb manipulation, expressions
- **Export** — PNG, JPEG, SVG, GIF, sprite sheet export
- **Undo/Redo** — full history stack for all editors
- **Clipboard** — copy/paste shapes, selections, layers across editors
- **Grid & Snapping** — pixel grid, smart guides, snap-to-grid
- **Color** — RGBA, HSLA, HEX picker with palette management
