MCPcopy Create free account
hub / github.com/plotly/plotly.js / draw2dX

Function draw2dX

src/traces/isosurface/convert.js:693–717  ·  view source on GitHub ↗
(style, items, min, max, previousResult)

Source from the content-addressed store, hash-verified

691 }
692
693 function draw2dX(style, items, min, max, previousResult) {
694 var result = [];
695 var n = 0;
696 for(var q = 0; q < items.length; q++) {
697 var i = items[q];
698 for(var k = 1; k < depth; k++) {
699 for(var j = 1; j < height; j++) {
700 result.push(
701 begin2dCell(style,
702 getIndex(i, j - 1, k - 1),
703 getIndex(i, j - 1, k),
704 getIndex(i, j, k - 1),
705 getIndex(i, j, k),
706 min,
707 max,
708 (i + j + k) % 2,
709 (previousResult && previousResult[n]) ? previousResult[n] : []
710 )
711 );
712 n++;
713 }
714 }
715 }
716 return result;
717 }
718
719 function draw2dY(style, items, min, max, previousResult) {
720 var result = [];

Callers 1

drawAllFunction · 0.85

Calls 2

begin2dCellFunction · 0.85
getIndexFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…