title: 2d-bin-packing Algorithm to place a rectangle in x,y location?
body: <p>I am implementing 2d-bin-packing algorithm in canvas. My task is to place rectangles as optimal as it can be on a canvas.</p>
  
  <p>the following shows how to do it: 
  <a href="http://incise.org/2d-bin-packing-with-javascript-and-canvas.html" rel="nofollow noreferrer">http://incise.org/2d-bin-packing-with-javascript-and-canvas.html</a></p>
  
  <p>BUT, it starts with the origin. I would like to tell the algorithm where to put a rectangle and that the next one not to be on top of him.</p>
  
  <p>What should be changed in the code?</p>
  
  <p>Is there another algorithm to use for it?</p>