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

Function draw2dY

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

Source from the content-addressed store, hash-verified

717 }
718
719 function draw2dY(style, items, min, max, previousResult) {
720 var result = [];
721 var n = 0;
722 for(var q = 0; q < items.length; q++) {
723 var j = items[q];
724 for(var i = 1; i < width; i++) {
725 for(var k = 1; k < depth; k++) {
726 result.push(
727 begin2dCell(style,
728 getIndex(i - 1, j, k - 1),
729 getIndex(i, j, k - 1),
730 getIndex(i - 1, j, k),
731 getIndex(i, j, k),
732 min,
733 max,
734 (i + j + k) % 2,
735 (previousResult && previousResult[n]) ? previousResult[n] : []
736 )
737 );
738 n++;
739 }
740 }
741 }
742 return result;
743 }
744
745 function draw2dZ(style, items, min, max, previousResult) {
746 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…