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

Function testImageCombo

test/jasmine/assets/domain_ref_components.js:626–658  ·  view source on GitHub ↗
(combo, assert, gd)

Source from the content-addressed store, hash-verified

624}
625
626function testImageCombo(combo, assert, gd) {
627 var axistypex = combo[0];
628 var axistypey = combo[1];
629 var axispair = combo[2];
630 var aroposx = combo[3];
631 var aroposy = combo[4];
632 var xanchor = combo[5];
633 var yanchor = combo[6];
634 var xid = axispair[0];
635 var yid = axispair[1];
636 var xref = makeAxRef(xid, aroposx.ref);
637 var yref = makeAxRef(yid, aroposy.ref);
638 return Plotly.newPlot(gd, Lib.extendDeep({}, testMock))
639 .then(function(gd) {
640 return imageTest(gd, {},
641 {
642 xaxtype: axistypex,
643 yaxtype: axistypey,
644 x: aroposx.value[0],
645 y: aroposy.value[0],
646 sizex: aroposx.size,
647 sizey: aroposy.size,
648 xanchor: xanchor,
649 yanchor: yanchor,
650 xref: xref,
651 yref: yref,
652 xid: xid,
653 yid: yid,
654 });
655 }).then(function(testRet) {
656 assert(testRet);
657 });
658}
659
660function describeAnnotationComboTest(combo) {
661 var axistypex = combo[0];

Callers

nothing calls this directly

Calls 3

makeAxRefFunction · 0.85
imageTestFunction · 0.85
assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…