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

Function getPos

test/jasmine/tests/plot_api_test.js:288–291  ·  view source on GitHub ↗
(sel)

Source from the content-addressed store, hash-verified

286 var jsLogo = 'https://images.plot.ly/language-icons/api-home/js-logo.png';
287
288 function getPos(sel) {
289 var rect = sel.node().getBoundingClientRect();
290 return [rect.left, rect.bottom];
291 }
292
293 function getAnnotationPos() {
294 return getPos(d3Select('.annotation'));

Callers 3

getAnnotationPosFunction · 0.70
getShapePosFunction · 0.70
getImagePosFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…