javascript - When doing image transformation using fabric js, rounding box goes out of boders -
i creating webpage, on page trying apply matrix transformation on image object. transformation works rounding box didn't reset. when try re size or rotate images actual points going out of image. here code.
var img22 = fabric.image.fromurl('test-img/apron-001-449.jpg', function(oimg) { oimg.set({transformmatrix: [ 1, 0, 0, 0.5, 0, 0 ], width:200,height:300, top: 300, left: 250}); oimg.setcoords(); canvas1.add(oimg); }); canvas1.renderall();
can show me how fix problem
this known bug in fabric js version 1.4.0. updating library version 1.5.0 fixes problem. see fiddle example
here
Comments
Post a Comment