Fabric.js - Attach object creation to mouse click
<p>When you create a new fabric object, you can specify the location for it to appear on the canvas. Is there a way to attach the generated object to the mouse and then place the object on click (or touch)?</p>

<p>E.g. way to generate a circle which appears on the canvas.</p>

<pre><code>var circle = new fabric.Circle({
  radius: 20, fill: 'green', left: 100, top: 100
});
</code></pre>