title: change border width of Rect in fabricjs
body: <p>This Rectangle i have created on canvas using fabicjs , now on change of text box i want to set border width . i tried following but its not working.</p>
  
  <pre><code>image[img] = new fabric.Rect({
                      top : 100,
                      left : 100,
                      width : 50,
                      height : 50,
                      fill : '#f55',
                      stroke : 'black',
                      strokeWidth : 1
                  });
  </code></pre>
  
  <p>Changing Border Width ::</p>
  
  <pre><code>$('#shape_border_size').change(function() {
      console.log(' size changed to ' + $(this).val());
  
      var obj = canvas.getActiveObject();
  
      if (!obj)
          return;
  
      //obj.set('strokeWidth', $(this).val());
      canvas.renderAll();
  
  });
  </code></pre>