@antv/dom-util
Version:
A common util collection for antv projects
12 lines • 391 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var get_style_1 = require("./get-style");
function getHeight(el, defaultValue) {
var width = (0, get_style_1.default)(el, 'width', defaultValue);
if (width === 'auto') {
width = el.offsetWidth;
}
return parseFloat(width);
}
exports.default = getHeight;
//# sourceMappingURL=get-width.js.map