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

Function _getLocalPos

test/jasmine/tests/cartesian_interact_test.js:2358–2364  ·  view source on GitHub ↗
(element, point)

Source from the content-addressed store, hash-verified

2356 afterEach(destroyGraphDiv);
2357
2358 function _getLocalPos(element, point) {
2359 var bb = element.getBoundingClientRect();
2360 return [
2361 bb.left + point[0],
2362 bb.top + point[1]
2363 ];
2364 }
2365
2366 function transformPlot(gd, transformString) {
2367 gd.style.webkitTransform = transformString;

Callers 4

_dragFunction · 0.70
_dragReleaseFunction · 0.70
_hoverFunction · 0.70
_unhoverFunction · 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…