(index)
| 847 | } |
| 848 | |
| 849 | get_cell_transform(index) { |
| 850 | if (!this.past_border_y()) { |
| 851 | if (this.past_border_x()) { |
| 852 | this.y_direction = -1 * this.y_direction; |
| 853 | this.prev_x += this.x_direction; |
| 854 | } else { |
| 855 | this.x_direction = -1 * this.x_direction; |
| 856 | this.prev_y += this.y_direction; |
| 857 | this.group_iter += 1; |
| 858 | } |
| 859 | } else { |
| 860 | this.prev_y += this.y_direction; |
| 861 | } |
| 862 | return ( |
| 863 | 'translate(' + |
| 864 | this.prev_x * this.column_width + |
| 865 | ', ' + |
| 866 | this.prev_y * this.row_height + |
| 867 | ')' |
| 868 | ); |
| 869 | } |
| 870 | |
| 871 | get_new_cords() { |
| 872 | let new_x = this.prev_x; |
no test coverage detected