(gd, buttons)
| 348 | }; |
| 349 | |
| 350 | function createModeBar(gd, buttons) { |
| 351 | var fullLayout = gd._fullLayout; |
| 352 | |
| 353 | var modeBar = new ModeBar({ |
| 354 | graphInfo: gd, |
| 355 | container: fullLayout._modebardiv.node(), |
| 356 | buttons: buttons |
| 357 | }); |
| 358 | |
| 359 | if(fullLayout._privateplot) { |
| 360 | d3.select(modeBar.element).append('span') |
| 361 | .classed('badge-private float--left', true) |
| 362 | .text('PRIVATE'); |
| 363 | } |
| 364 | |
| 365 | return modeBar; |
| 366 | } |
| 367 | |
| 368 | module.exports = createModeBar; |
no outgoing calls
no test coverage detected
searching dependent graphs…