MCPcopy
hub / github.com/plotly/plotly.js / _assert

Function _assert

test/jasmine/tests/scatterternary_test.js:461–484  ·  view source on GitHub ↗
(layerClips, nodeDisplays, lineClips)

Source from the content-addressed store, hash-verified

459 delete fig.data[0].marker;
460
461 function _assert(layerClips, nodeDisplays, lineClips) {
462 var frontLayer = d3Select('.frontplot');
463 var scatterLayer = d3Select('.scatterlayer');
464
465 assertClip(frontLayer, layerClips[0], 1, 'front layer');
466 assertClip(scatterLayer, layerClips[1], 1, 'scatter layer');
467
468 assertNodeDisplay(
469 scatterLayer.selectAll('.point'),
470 nodeDisplays,
471 'scatter points'
472 );
473 assertNodeDisplay(
474 scatterLayer.selectAll('.textpoint'),
475 nodeDisplays,
476 'scatter text points'
477 );
478
479 assertClip(
480 scatterLayer.selectAll('.js-line'),
481 lineClips[0], lineClips[1],
482 'line clips'
483 );
484 }
485
486 Plotly.newPlot(gd, fig)
487 .then(function() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…