function getTextRect(node) {
  if (!shared_utils_1.isBrowser) return;
  if (!range) range = document.createRange();
  range.selectNode(node);
  return range.getBoundingClientRect();
}
Get the bounding rect for a text node using a Range.

@param {Text} node
@return {Rect}