code: function(width) {
              // take into account pixel ratio
              this.width = this._canvas.width = width * this.pixelRatio;
              this._canvas.style.width = width + 'px';
          }
docs: set width
  @method
  @memberof Kinetic.Canvas.prototype
  @param {Number} width