MCPcopy
hub / github.com/helloxz/onenav / getClientRect

Function getClientRect

static/bootstrap4/js/bootstrap.bundle.js:1934–1939  ·  view source on GitHub ↗

* Given element offsets, generate an output similar to getBoundingClientRect * @method * @memberof Popper.Utils * @argument {Object} offsets * @returns {Object} ClientRect like output

(offsets)

Source from the content-addressed store, hash-verified

1932 * @returns {Object} ClientRect like output
1933 */
1934 function getClientRect(offsets) {
1935 return _extends({}, offsets, {
1936 right: offsets.left + offsets.width,
1937 bottom: offsets.top + offsets.height
1938 });
1939 }
1940
1941 /**
1942 * Get bounding client rect of given element

Callers 7

getBoundingClientRectFunction · 0.85
runModifiersFunction · 0.85
arrowFunction · 0.85
toValueFunction · 0.85
innerFunction · 0.85

Calls 1

_extendsFunction · 0.85

Tested by

no test coverage detected