react-art icon indicating copy to clipboard operation
react-art copied to clipboard

Should strokeWidth = 0 cause no stroke to render?

Open ThomWright opened this issue 10 years ago • 1 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?

ThomWright avatar Sep 24 '15 15:09 ThomWright

Yea, this seems like a bug.

sebmarkbage avatar Sep 24 '15 17:09 sebmarkbage