awslabs / awslabs/diagram-as-code
Default arrow head with antialiasing
- Dominant language
- Go
- Stars
- 1.6k
- Forks
- 101
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Since the argument of drawLine is image.Point (a structure with x,y as integers), the floating point number is cast to an integer.
https://github.com/awslabs/diagram-as-code/blob/cc6f6ce118fab8231a735216cc0766cd069d0f4c/internal/types/link.go#L116-L119
Considering extensibility, an option is to create a Point structure with x and y as floating point numbers.
Contributor guide
Research direction
Start with internal/types/link.go around lines 116–119 and inspect how the drawLine arguments convert floating-point coordinates to image.Point integers. Determine the intended antialiasing behavior for the default arrow head, then verify that the resulting links render smoothly without changing their geometry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100