demos/Collage/fabric.js
function (e) {
      var pointer = getPointer(e);
      return {
        x: pointer.x - this._offset.left,
        y: pointer.y - this._offset.top
      };
    }
function (e) {
      var pointer = getPointer(e);
      return {
        x: pointer.x - this._offset.left,
        y: pointer.y - this._offset.top
      };
    }
function ( e ) { var pointer = getPointer ( e ) ; return { x : pointer . x - this . _offset . left , y : pointer . y - this . _offset . top } ; }
Returns pointer coordinates relative to canvas.
@method getPointer
@return {Object} object with "x" and "y" number values
Returns pointer coordinates relative to canvas .