/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */
function getOffset(element, parent) {
  return {
    top: Math.round(element.getBoundingClientRect().top - parent.getBoundingClientRect().top),
    left: Math.round(element.getBoundingClientRect().left - parent.getBoundingClientRect().left)
  };
}
export {
  getOffset
};
