user3355281
user3355281

Reputation: 57

How do I remove the vertex border in mxGraph?

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

Answers (1)

Frodo Baggins
Frodo Baggins

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

Related Questions