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

Function draw2dZ

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

Source from the content-addressed store, hash-verified

743 }
744
745 function draw2dZ(style, items, min, max, previousResult) {
746 var result = [];
747 var n = 0;
748 for(var q = 0; q < items.length; q++) {
749 var k = items[q];
750 for(var j = 1; j < height; j++) {
751 for(var i = 1; i < width; i++) {
752 result.push(
753 begin2dCell(style,
754 getIndex(i - 1, j - 1, k),
755 getIndex(i - 1, j, k),
756 getIndex(i, j - 1, k),
757 getIndex(i, j, k),
758 min,
759 max,
760 (i + j + k) % 2,
761 (previousResult && previousResult[n]) ? previousResult[n] : []
762 )
763 );
764 n++;
765 }
766 }
767 }
768 return result;
769 }
770
771 function draw3d(style, min, max) {
772 for(var k = 1; k < depth; k++) {

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…