(position, titleY, titleYanchor, height, titleDepth)
| 485 | } |
| 486 | |
| 487 | function containerPushVal(position, titleY, titleYanchor, height, titleDepth) { |
| 488 | var push = 0; |
| 489 | if(titleYanchor === 'middle') { |
| 490 | push += titleDepth / 2; |
| 491 | } |
| 492 | if(position === 't') { |
| 493 | if(titleYanchor === 'top') { |
| 494 | push += titleDepth; |
| 495 | } |
| 496 | push += (height - titleY * height); |
| 497 | } else { |
| 498 | if(titleYanchor === 'bottom') { |
| 499 | push += titleDepth; |
| 500 | } |
| 501 | push += titleY * height; |
| 502 | } |
| 503 | return push; |
| 504 | } |
| 505 | |
| 506 | function needsMarginPush(gd, title, titleHeight) { |
| 507 | var titleY = title.y; |
no outgoing calls
no test coverage detected
searching dependent graphs…