katoikia-app/web-ui/web-react/node_modules/dom-helpers/cjs/getComputedStyle.js

20 lines
549 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = getComputedStyle;
var _ownerWindow = _interopRequireDefault(require("./ownerWindow"));
/**
* Returns one or all computed style properties of an element.
*
* @param node the element
* @param psuedoElement the style property
*/
function getComputedStyle(node, psuedoElement) {
return (0, _ownerWindow.default)(node).getComputedStyle(node, psuedoElement);
}
module.exports = exports["default"];