MCPcopy Create free account
hub / github.com/cli-table/cli-table3 / addColSpanCells

Function addColSpanCells

src/layout-manager.js:104–117  ·  view source on GitHub ↗
(cellRows)

Source from the content-addressed store, hash-verified

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;

Callers 1

makeTableLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…