Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions FIX_cycle_offset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Fix: cycle shape render offset

Fix cycle shape offset by adding stroke width to bounds calculation in render/shape.go:

```go
case "cycle", "circle":
radius := math.Min(float64(width), float64(height))/2 + float64(strokeWidth)
cx, cy := float64(width)/2, float64(height)/2
bounds = image.Rect(int(cx-radius), int(cy-radius), int(cx+radius), int(cy+radius))
```

Closes #1234