planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

23
node_modules/dom-helpers/cjs/width.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = getWidth;
var _isWindow = _interopRequireDefault(require("./isWindow"));
var _offset = _interopRequireDefault(require("./offset"));
/**
* Returns the width of a given element.
*
* @param node the element
* @param client whether to use `clientWidth` if possible
*/
function getWidth(node, client) {
var win = (0, _isWindow.default)(node);
return win ? win.innerWidth : client ? node.clientWidth : (0, _offset.default)(node).width;
}
module.exports = exports["default"];