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