reactjs / react-art

React Bridge to the ART Drawing Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should strokeWidth = 0 cause no stroke to render?

ThomWright opened this issue · comments

I expected setting strokeWidth={0} to cause no stroke to be rendered (even when stroke color is set).

However, the canvas draws it anyway because it doesn't accept a lineWidth of 0 (see here).

Here _stroke is only set when color is set. Could we add an extra condition so that it also checks for width > 0?

Yea, this seems like a bug.