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

Function plotMock14

test/jasmine/tests/select_test.js:182–198  ·  view source on GitHub ↗
(layoutOpts)

Source from the content-addressed store, hash-verified

180 afterEach(destroyGraphDiv);
181
182 function plotMock14(layoutOpts) {
183 var mock = require('../../image/mocks/14.json');
184 var defaultLayoutOpts = {
185 layout: {
186 clickmode: 'event+select',
187 dragmode: 'select',
188 hovermode: 'closest'
189 }
190 };
191 var mockCopy = Lib.extendDeep(
192 {},
193 mock,
194 defaultLayoutOpts,
195 { layout: layoutOpts });
196
197 return _newPlot(gd, mockCopy.data, mockCopy.layout);
198 }
199
200 /**
201 * Executes a click and before resets selection event handlers.

Callers 1

select_test.jsFile · 0.85

Calls 1

_newPlotFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…