code: function (source, destination) {
        if (!source) return null;
  
        destination = destination || {};
  
        angular.forEach('left top right bottom width height'.split(' '), function (key) {
          destination[key] = Math.round(source[key]);
        });
  
        destination.width = destination.width || (destination.right - destination.left);
        destination.height = destination.height || (destination.bottom - destination.top);
  
        return destination;
      }
docs: Clone the Rect and calculate the height/width if needed