MCPcopy Create free account
hub / github.com/microsoft/SandDance / outerSize

Function outerSize

docs/app/js/sanddance-app.js:6855–6863  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

6853 return div;
6854}
6855function outerSize(el) {
6856 const cs = getComputedStyle(el);
6857 const height = parseFloat(cs.marginTop) + parseFloat(cs.paddingTop) + parseFloat(cs.borderTopWidth) + el.offsetHeight + parseFloat(cs.borderBottomWidth) + parseFloat(cs.paddingBottom) + parseFloat(cs.marginBottom);
6858 const width = parseFloat(cs.marginLeft) + parseFloat(cs.paddingLeft) + parseFloat(cs.borderLeftWidth) + el.offsetWidth + parseFloat(cs.borderRightWidth) + parseFloat(cs.paddingRight) + parseFloat(cs.marginRight);
6859 return {
6860 height,
6861 width
6862 };
6863}
6864
6865},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"17ucx":[function(require,module,exports) {
6866var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected