Commit Graph
3 Commits
Author SHA1 Message Date
marcoandClaude Opus 4.6 8d6c2213ad Fix arrows not drawing when dragged left or upward
CGRect.maxX/maxY standardize to positive values, collapsing
the arrow endpoint onto the start point for negative width/height.
Use origin + size instead to preserve direction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-22 07:39:56 +02:00
marcoandClaude Opus 4.6 7a78176183 Fix flipped image in editor canvas
Use respectFlipped: true when drawing NSImage so it renders correctly
in the flipped NSView coordinate system.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 18:42:12 +02:00
marcoandClaude Opus 4.6 062285abbf Add image editor with annotation tools
Integrates an editor accessible via "Letzte Aufnahme bearbeiten…" or
"Bild bearbeiten…" in the menu bar. Supports arrow, rectangle, ellipse,
and text annotations with color picker, line width, undo/redo, and
export to file or clipboard.

New files in Sources/Editor/:
- AnnotationItem/Document: data model and state management
- AnnotationCanvasView: NSView with CG rendering and mouse interaction
- AnnotationRenderer: shared rendering for canvas and image export
- EditorToolbarView: SwiftUI toolbar with tool selection and actions
- EditorWindowController: window lifecycle following SettingsWindowController pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 17:44:20 +02:00