MCPcopy Index your code
hub / github.com/plotly/plotly.js / getTopOffset

Function getTopOffset

src/components/fx/hover.js:2547–2547  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

2545// a sibling of the graph div, it will be positioned correctly relative to
2546// the offset parent, whatever that may be.
2547const getTopOffset = (gd) => gd.offsetTop + gd.clientTop;
2548const getLeftOffset = (gd) => gd.offsetLeft + gd.clientLeft;
2549
2550function getBoundingClientRect(gd, node) {

Callers 2

hover.jsFile · 0.85
_hoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…