(txs, trace, gd)
| 75 | } |
| 76 | |
| 77 | function styleTextInSelectionMode(txs, trace, gd) { |
| 78 | txs.each(function(d) { |
| 79 | var tx = d3.select(this); |
| 80 | var font; |
| 81 | |
| 82 | if(d.selected) { |
| 83 | font = Lib.ensureUniformFontSize(gd, determineFont(tx, d, trace, gd)); |
| 84 | |
| 85 | var selectedFontColor = trace.selected.textfont && trace.selected.textfont.color; |
| 86 | if(selectedFontColor) { |
| 87 | font.color = selectedFontColor; |
| 88 | } |
| 89 | |
| 90 | Drawing.font(tx, font); |
| 91 | } else { |
| 92 | Drawing.selectedTextStyle(tx, trace); |
| 93 | } |
| 94 | }); |
| 95 | } |
| 96 | |
| 97 | function determineFont(tx, d, trace, gd) { |
| 98 | var layoutFont = gd._fullLayout.font; |
no test coverage detected
searching dependent graphs…