(gd, aro)
| 520 | // gets the SVG bounding box of the aro and checks it against what mapToPixel |
| 521 | // gives |
| 522 | function 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 | |
| 532 | function shapeTest( |
| 533 | gd, |
no test coverage detected
searching dependent graphs…