Files
paint-ui/components/modals/canvas-resize-dialog.tsx
Sebastian Krüger 5f389c7b71 feat(phase-13): implement canvas resize dialog with multiple methods
Add comprehensive canvas resize functionality with three resize methods.

Features:
- Canvas Size dialog accessible from Image menu
- Three resize methods:
  * Scale: Stretch/shrink content to fit new size
  * Crop: Crop or center content without scaling
  * Expand: Expand canvas, center existing content
- Maintain aspect ratio toggle with link/unlink button
- Dimension validation (1-10000 pixels)
- Real-time preview of new dimensions
- Applies to all layers simultaneously
- Toast notifications for success/errors

Changes:
- Created components/modals/canvas-resize-dialog.tsx
- Added "Canvas Size..." menu item to Image menu
- Integrated with useLayerStore for layer updates
- Uses toast utility for user feedback
- Validates dimensions before applying
- Supports linked/unlinked aspect ratio

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 20:09:52 +01:00

8.1 KiB