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

Function checkAROPosition

test/jasmine/assets/domain_ref_components.js:522–530  ·  view source on GitHub ↗
(gd, aro)

Source from the content-addressed store, hash-verified

520// gets the SVG bounding box of the aro and checks it against what mapToPixel
521// gives
522function checkAROPosition(gd, aro) {
523 var aroPath = findAROByColor(aro.line.color, '#' + gd.id);
524 var aroPathBBox = getSVGElemScreenBBox(aroPath);
525 var aroBBox = shapeToBBox(gd.layout, aro);
526 var ret = compareBBoxes(aroBBox, aroPathBBox);
527 // console.log('aroBBox: ' + JSON.stringify(aroBBox));
528 // console.log('aroPathBBox: ' + JSON.stringify(SVGTools.svgRectToObj(aroPathBBox)));
529 return ret;
530}
531
532function shapeTest(
533 gd,

Callers 1

shapeTestFunction · 0.85

Calls 4

findAROByColorFunction · 0.85
getSVGElemScreenBBoxFunction · 0.85
shapeToBBoxFunction · 0.85
compareBBoxesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…