Resize Fabric js Canvas

 

canvas.setWidth( <desired width> );
canvas.setHeight( <desired height> );
canvas.calcOffset();

 

Tagged , , , , , ,

Leave a Reply