(tx, d, trace, gd)
| 95 | } |
| 96 | |
| 97 | function determineFont(tx, d, trace, gd) { |
| 98 | var layoutFont = gd._fullLayout.font; |
| 99 | var textFont = trace.textfont; |
| 100 | |
| 101 | if(tx.classed('bartext-inside')) { |
| 102 | var barColor = getBarColor(d, trace); |
| 103 | textFont = getInsideTextFont(trace, d.i, layoutFont, barColor); |
| 104 | } else if(tx.classed('bartext-outside')) { |
| 105 | textFont = getOutsideTextFont(trace, d.i, layoutFont); |
| 106 | } |
| 107 | |
| 108 | return textFont; |
| 109 | } |
| 110 | |
| 111 | function getTextFont(trace, index, defaultValue) { |
| 112 | return getFontValue( |
no test coverage detected
searching dependent graphs…