Is there any way to repeat the pattern inside an object in fabric JS.
Suppose i have a rectangle filled with a pattern. I want the pattern to be repeated when i scale the rectangle.
Right now it is zooming when i scale it.
Thanks
Is there any way to repeat the pattern inside an object in fabric JS.
Suppose i have a rectangle filled with a pattern. I want the pattern to be repeated when i scale the rectangle.
Right now it is zooming when i scale it.
Thanks
@user2571818 I was also looking for this and finally got it working. We'll have to use
object:scaling
event to scale the object back to 1x and change size of the object instead to make the pattern repeat instead of scaling it. See it hereJSFiddle: https://jsfiddle.net/dotriz/ajsdmg4s/