UNPKG

@atlaskit/navigation-system

Version:

The latest navigation system for Atlassian apps.

13 lines (12 loc) • 359 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPixelWidth = void 0; /** * Returns the computed width of an element in pixels. */ var getPixelWidth = exports.getPixelWidth = function getPixelWidth(element) { // Always returns an integer. Returns 0 if element is hidden / removed. return element.offsetWidth; };