MCPcopy Create free account
hub / github.com/ImprintLab/Medical-SAM2 / width

Function width

static/js/bulma-carousel.js:132–134  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

130
131// returns an element's width
132var width = function width(element) {
133 return element.getBoundingClientRect().width || element.offsetWidth;
134};
135// returns an element's height
136var height = function height(element) {
137 return element.getBoundingClientRect().height || element.offsetHeight;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected