awslabs / diagram-as-code

Diagram-as-code for AWS architecture.
Apache License 2.0
406 stars 23 forks source link

Default arrow head with antialiasing #32

Open ugwis opened 2 months ago

ugwis commented 2 months ago

Since the argument of drawLine is image.Point (a structure with x,y as integers), the floating point number is cast to an integer.

image

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.