(cellRows)
| 102 | } |
| 103 | |
| 104 | function addColSpanCells(cellRows) { |
| 105 | for (let rowIndex = cellRows.length - 1; rowIndex >= 0; rowIndex--) { |
| 106 | let cellColumns = cellRows[rowIndex]; |
| 107 | for (let columnIndex = 0; columnIndex < cellColumns.length; columnIndex++) { |
| 108 | let cell = cellColumns[columnIndex]; |
| 109 | for (let k = 1; k < cell.colSpan; k++) { |
| 110 | let colSpanCell = new ColSpanCell(); |
| 111 | colSpanCell.x = cell.x + k; |
| 112 | colSpanCell.y = cell.y; |
| 113 | cellColumns.splice(columnIndex + 1, 0, colSpanCell); |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | function insertCell(cell, row) { |
| 120 | let x = 0; |
no outgoing calls
no test coverage detected
searching dependent graphs…