MCPcopy
hub / github.com/plotly/plotly.js / _getLocalPos

Function _getLocalPos

test/jasmine/tests/polar_test.js:1870–1876  ·  view source on GitHub ↗
(element, point)

Source from the content-addressed store, hash-verified

1868 afterEach(destroyGraphDiv);
1869
1870 function _getLocalPos(element, point) {
1871 var bb = element.getBoundingClientRect();
1872 return [
1873 bb.left + point[0],
1874 bb.top + point[1]
1875 ];
1876 }
1877
1878 function transformPlot(gd, transformString) {
1879 gd.style.webkitTransform = transformString;

Callers 2

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