Reputation: 57
I'm trying to get it so that a vertex will highlight a border on a mouse over, but have no border otherwise. I've tried using the strokewidth and stroke color to do this, but the border doesn't seem to obey me setting it to zero, there's always a 1px outline.
Looking at the source code I have I see:
var strokeWidth=Math.max(1,this.strokewidth*this.scale);
So should I override this and remove the Math.max call so the 1px minimum isn't enforced?
Upvotes: 1
Views: 1726
Reputation: 8543
Google Chrome ignores the value 0 for stroke-widths (uses 1). Try using
strokeColor=none
The API specification is worth reading when facing such problems.
Upvotes: 3