Gazebo_simulation-Frontend/node_modules/dom-helpers/esm/width.js
2020-12-21 10:29:31 -05:00

6 lines
226 B
JavaScript

import getWindow from './isWindow';
import offset from './offset';
export default function getWidth(node, client) {
var win = getWindow(node);
return win ? win.innerWidth : client ? node.clientWidth : offset(node).width;
}