code: function mergeCanvasRect(rect, result) {
              if (rect) {
                  if (rect.hasOwnProperty("width")) {
                      result.canvasWidth = rect.width;
                  }
                  
                  if (rect.hasOwnProperty("height")) {
                      result.canvasHeight = rect.height;
                  }
  
                  if (rect.hasOwnProperty("x")) {
                      result.canvasOffsetX = rect.x;
                  }
  
                  if (rect.hasOwnProperty("y")) {
                      result.canvasOffsetY = rect.y;
                  }
              }
          }
docs: /*
  Merge a canvasRect object into a results object, taking care to only copy defined values.
  Currently on width and height, as well as X & Y offset.