title: Fabric Js: How to Create Rectangle programatically with only 2 points that is Top Left Corner and Bottom Right Corner?
body: <p>The rectangle can be created using top, left, width, height like this</p>
  
  <pre><code>var rect = new fabric.Rect({
     left: 50,
     top: 50,
     width: 50,
     height: 50,
     fill: 'rgba(255,127,39,1)',
  });
  </code></pre>
  
  <p>Is it possible to create a rectangle by setting its aCoords top-left-corner and bottom-right-corner?Is there any way for creating Rectangle with only those two points? </p>