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

Function getCenter

test/jasmine/tests/updatemenus_test.js:1319–1325  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1317 }
1318
1319 function getCenter(node) {
1320 var bbox = getBBox(node);
1321 var x = bbox.x + 0.5 * bbox.width;
1322 var y = bbox.y + 0.5 * bbox.height;
1323
1324 return { x: x, y: y };
1325 }
1326
1327 function getScrollBarCenter(scrollBox, scrollBar) {
1328 var scrollBoxTranslate = Drawing.getTranslate(scrollBox);

Callers 2

getScrollBarCenterFunction · 0.70
dragScrollBoxFunction · 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…