Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Should strokeWidth = 0 cause no stroke to render? #66

Open
ThomWright opened this issue Sep 24, 2015 · 1 comment
Open

Should strokeWidth = 0 cause no stroke to render? #66

ThomWright opened this issue Sep 24, 2015 · 1 comment
Labels

Comments

@ThomWright
Copy link
Contributor

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?

@sebmarkbage
Copy link
Contributor

Yea, this seems like a bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants