Technically not possible without a hack of the fabric.js source code. This works for me with fabric.js 0.9.8:
Find this line:
cornerHypotenuse = Math.sqrt(2 * Math.pow(this.cornersize, 2)) / 2,
Change to:
cornerHypotenuse = (Math.sqrt(2 * Math.pow(this.cornersize, 2)) / 2)*4,
Where '4' is the size you wish to multiply the clickable area to.
No comments:
Post a Comment