MCPcopy
hub / github.com/exceljs/exceljs / normaliseMatrix

Method normaliseMatrix

lib/doc/defined-names.js:147–159  ·  view source on GitHub ↗
(matrix, sheetName)

Source from the content-addressed store, hash-verified

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 => {

Callers 2

spliceRowsMethod · 0.95
spliceColumnsMethod · 0.95

Calls 1

forEachInSheetMethod · 0.80

Tested by

no test coverage detected