(style, items, min, max, previousResult)
| 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++) { |
no test coverage detected
searching dependent graphs…