MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / offset

Function offset

docs/static/js/bulma-carousel.js:123–129  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

121};
122
123var offset = function offset(element) {
124 var rect = element.getBoundingClientRect();
125 return {
126 top: rect.top + document.body.scrollTop,
127 left: rect.left + document.body.scrollLeft
128 };
129};
130
131// returns an element's width
132var width = function width(element) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected