Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ui-component-library / src / playground / Image / deps / getWidthHeight.ts
Size: Mime:
/**
 * @tutorial https://stackoverflow.com/questions/3971841/how-to-resize-images-proportionally-keeping-the-aspect-ratio
 */
function getWidthHeight(domNodeRef: Element) {
  const width = domNodeRef.style.width
  const height = domNodeRef.style.width

  return {
    width,
    height,
  }
}

export { getWidthHeight }
export default getWidthHeight