(matrix, sheetName)
| 145 | } |
| 146 | |
| 147 | normaliseMatrix(matrix, sheetName) { |
| 148 | // some of the cells might have shifted on specified sheet |
| 149 | // need to reassign rows, cols |
| 150 | matrix.forEachInSheet(sheetName, (cell, row, col) => { |
| 151 | if (cell) { |
| 152 | if (cell.row !== row || cell.col !== col) { |
| 153 | cell.row = row; |
| 154 | cell.col = col; |
| 155 | cell.address = colCache.n2l(col) + row; |
| 156 | } |
| 157 | } |
| 158 | }); |
| 159 | } |
| 160 | |
| 161 | spliceRows(sheetName, start, numDelete, numInsert) { |
| 162 | _.each(this.matrixMap, matrix => { |
no test coverage detected