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

Function getIconSvg

test/jasmine/tests/modebar_test.js:159–165  ·  view source on GitHub ↗
(modeBar)

Source from the content-addressed store, hash-verified

157
158 describe('creates a custom button', function() {
159 function getIconSvg(modeBar) {
160 if(!modeBar || !modeBar.buttonElements || !modeBar.buttonElements.length > 0) {
161 return undefined;
162 }
163 var button = modeBar.buttonElements[0];
164 return d3Select(button).select('svg');
165 }
166
167 it('with a Plotly icon', function() {
168 var modeBar = createModeBar(getMockGraphInfo(), [[

Callers 1

modebar_test.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…