code: function(width, height) {
        this.getPos(true);
        this.translateOffsetX = this.translateOffsetY = 0;
        this.scaleOffsetX = this.scaleOffsetY = 1;
        for(var i=0, l=this.canvases.length; i<l; i++) {
          this.canvases[i].resize(width, height);
        }
        var style = this.element.style;
        style.width = width + 'px';
        style.height = height + 'px';
        if(this.labelContainer)
          this.labelContainer.style.width = width + 'px';
      }
docs: /*
  Method: resize
  
  Resizes the canvas.
  
  Parameters:
  
  width - New canvas width.
  height - New canvas height.
  
  Example:
  
  (start code js)
  canvas.resize(width, height);
  (end code)