code: function getSize(domElement, clearCache = false) {
    let cachedSize = domSizes.get(domElement);
    if (!cachedSize || clearCache) {
      cachedSize = { timestamp: -1 };
      domSizes.set(domElement, cachedSize);
    }
    updateSize(domElement, cachedSize);
  
    return cachedSize;
  }
docs: ------ New API ------