Reputation: 3209
I'm trying to clip image with clipPath object using fabricjs in Reactjs . It works fine except there is a white line (about 1 pixel) showing on top and left border. Code can be checked at this codesandbox
Upvotes: 0
Views: 535
Reputation: 2872
By default, fabric objects have a transparent stroke of 1px. Setting a strokeWidth
value of 0 on your clipPath object will get rid of this.
See http://fabricjs.com/fabric-gotchas
Upvotes: 1