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

Function getMockGraphInfo

test/jasmine/tests/modebar_test.js:35–65  ·  view source on GitHub ↗
(xaxes, yaxes)

Source from the content-addressed store, hash-verified

33 }
34
35 function getMockGraphInfo(xaxes, yaxes) {
36 return {
37 _fullLayout: {
38 _uid: '6ea6a7',
39 dragmode: 'zoom',
40 _paperdiv: d3Select(getMockContainerTree()),
41 _modebardiv: d3Select(getMockModeBarTree()),
42 _has: Plots._hasPlotType,
43 _subplots: {xaxis: xaxes || [], yaxis: yaxes || []},
44 modebar: {
45 add: '',
46 remove: '',
47 orientation: 'h',
48 bgcolor: 'rgba(255,255,255,0.7)',
49 color: 'rgba(0, 31, 95, 0.3)',
50 activecolor: 'rgba(0, 31, 95, 1)'
51 }
52 },
53 _fullData: [],
54 _context: {
55 displaylogo: true,
56 showSendToCloud: false,
57 showEditInChartStudio: false,
58 displayModeBar: true,
59 modeBarButtonsToRemove: [],
60 modeBarButtonsToAdd: [],
61 locale: 'en',
62 locales: {}
63 }
64 };
65 }
66
67 function countGroups(modeBar) {
68 return d3Select(modeBar.element).selectAll('div.modebar-group').size();

Callers 2

modebar_test.jsFile · 0.85
setupGraphInfoFunction · 0.85

Calls 2

getMockContainerTreeFunction · 0.85
getMockModeBarTreeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…