jxnblk/reline

Programmatically offset shape size by strokeWidth

jxnblk opened this issue · 2 comments

Programmatically offset shape size by strokeWidth

Just found this issue trying to add the ability to control the strokeLinecap and strokeLinejoin here and didn't PR because of this.

Playing here offsetting the viewBox but is complicated in Components which shapes init with [0, ... (plus, burger for example).

Interesting. I wasn't thinking of changing the viewBox attribute as that would break the 16x16 grid. I was more think that there would be a calculated margin value and the shapes object would be a function that accepted that margin