function offsetRectangle(rect, leftOffset, topOffset) {

        rect.left   += leftOffset;
        rect.right  += leftOffset;
        rect.top    += topOffset;
        rect.bottom += topOffset;
    }
@private
Offsets plain object (which represents a TextRectangle).

@param {Object} rect
@param {number} leftOffset
@param {number} topOffset