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

Function mockDefaultsAndCalc

test/jasmine/tests/plot_api_test.js:769–775  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

767 });
768
769 function mockDefaultsAndCalc(gd) {
770 supplyAllDefaults(gd);
771 gd.calcdata = gd._fullData.map(function (trace) {
772 return [{ x: 1, y: 1, trace: trace }];
773 });
774 gd.emit = function () {};
775 }
776
777 it('calls Scatter.arraysToCalcdata and Plots.style on scatter styling', function (done) {
778 var gd = {

Callers 1

plot_api_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…