(gd, title, position, y, titleHeight)
| 474 | |
| 475 | |
| 476 | function isOutsideContainer(gd, title, position, y, titleHeight) { |
| 477 | var plotHeight = title.yref === 'paper' ? gd._fullLayout._size.h : gd._fullLayout.height; |
| 478 | var yPosTop = Lib.isTopAnchor(title) ? y : y - titleHeight; // Standardize to the top of the title |
| 479 | var yPosRel = position === 'b' ? plotHeight - yPosTop : yPosTop; // Position relative to the top or bottom of plot |
| 480 | if((Lib.isTopAnchor(title) && position === 't') || Lib.isBottomAnchor(title) && position === 'b') { |
| 481 | return false; |
| 482 | } else { |
| 483 | return yPosRel < titleHeight; |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | function containerPushVal(position, titleY, titleYanchor, height, titleDepth) { |
| 488 | var push = 0; |
no outgoing calls
no test coverage detected
searching dependent graphs…