MCPcopy Index your code
hub / github.com/plotly/plotly.js / createModeBar

Function createModeBar

src/components/modebar/modebar.js:350–366  ·  view source on GitHub ↗
(gd, buttons)

Source from the content-addressed store, hash-verified

348};
349
350function 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
368module.exports = createModeBar;

Callers 2

modebar_test.jsFile · 0.85
manage.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…