"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isElementOverflowingY = exports.isElementOverflowingX = exports.getViewport = void 0;

var getViewport = function getViewport() {
  return {
    height: window.innerHeight || document.documentElement.offsetHeight,
    width: window.innerWidth || document.documentElement.offsetWidth
  };
};

exports.getViewport = getViewport;

var isElementOverflowingX = function isElementOverflowingX(element) {
  return element.clientWidth < element.scrollWidth;
};

exports.isElementOverflowingX = isElementOverflowingX;

var isElementOverflowingY = function isElementOverflowingY(element) {
  return element.clientHeight < element.scrollHeight;
};

exports.isElementOverflowingY = isElementOverflowingY;