UNPKG
@antv/dom-util
Version:
latest (2.0.4)
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
A common util collection for antv projects
github.com/antvis/util
antvis/util
@antv/dom-util
/
esm
/
get-height.js
9 lines
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
getStyle
from
'./get-style'
;
export
default
function
getHeight
(
el, defaultValue
) {
var
height =
getStyle
(el,
'height'
, defaultValue);
if
(height ===
'auto'
) { height = el.
offsetHeight
; }
return
parseFloat
(height); }
//# sourceMappingURL=get-height.js.map