Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
0a6a3e5
Tranpose works with any type
voodoo11 May 15, 2021
4cdf2e5
CHANGELOG
voodoo11 May 15, 2021
c9cf90f
Remove obsolete test
voodoo11 May 15, 2021
0b30d65
Allow to move cells in address mapping
voodoo11 May 8, 2021
4df502c
Compare matrices in graph comparator
voodoo11 May 8, 2021
73eda47
Adjust matrices address mapping after adding row
voodoo11 May 8, 2021
688bcf6
TODO
voodoo11 May 8, 2021
ae20930
Obsolete test
voodoo11 May 8, 2021
03cb6ce
Fix cherry-pick
voodoo11 May 15, 2021
ce743d5
Compare matrix mappings in graph comparator
voodoo11 May 21, 2021
55663ec
Remove unused code
voodoo11 May 21, 2021
fbd7ae6
Add simple tests
voodoo11 May 21, 2021
8028fa8
Move MatrixMapping entries when adding rows
voodoo11 May 21, 2021
37bd290
Spike
voodoo11 May 21, 2021
747caec
Exchanging matrix vertex works
voodoo11 May 21, 2021
555983f
Fix addres mapping for simple case of removing row
voodoo11 May 22, 2021
e68288b
Make matrix REF if no space after removing row
voodoo11 May 22, 2021
ea1690e
Tidy up
voodoo11 May 22, 2021
c541d73
Shrink matrix before swap
voodoo11 May 22, 2021
b5a5445
Fix gathering matrices related to ranges
voodoo11 May 22, 2021
a3b480d
Basic tests for removing rows works
voodoo11 May 23, 2021
35212d9
Test with potential CYCLE
voodoo11 May 23, 2021
0a4455b
Simplify condition by making use of MatrixSize function
voodoo11 May 23, 2021
cdad5c2
Reuse and simplify
voodoo11 May 23, 2021
48a88ca
Basic cases for setCellContent
voodoo11 May 23, 2021
edf3ffc
Set no space if writing over matrix
voodoo11 May 24, 2021
6c164a5
Shrink matrix during building graph if needed
voodoo11 May 28, 2021
5b3065a
Tests cleanup
voodoo11 May 28, 2021
e345ce2
Allow to setCellContent onto matrix
voodoo11 May 28, 2021
07bc372
Replacing matrix should work
voodoo11 May 28, 2021
47325c6
We do not forbid to change cell content any more when there is array
voodoo11 May 28, 2021
cf6dde9
Remove matrix when removing row with corner
voodoo11 May 28, 2021
8fccdbd
Do not change size of a REFed matrix
voodoo11 May 28, 2021
6ab5d19
Test for references
voodoo11 May 28, 2021
07f401a
Add test specially for dep correction
voodoo11 May 28, 2021
50677ca
Compare only ref flag
voodoo11 May 29, 2021
7f55fec
Fix adjusting edges
voodoo11 May 31, 2021
51894a9
Skipped test for later
voodoo11 Jun 4, 2021
6299050
just setNoSpace()
voodoo11 Jun 4, 2021
b3c8f8e
Test for undo redo and changes
voodoo11 Jun 4, 2021
b70c2d7
Keep changes with old content in map
voodoo11 Jun 4, 2021
5091a07
Ensure range content changes are properly exported
voodoo11 Jun 11, 2021
86f9e31
More specs
voodoo11 Jun 11, 2021
c5b456f
Use string key in ContentChanges
voodoo11 Jun 11, 2021
1d2527d
Gather changes from dependency graph
voodoo11 Jun 11, 2021
3ab8920
Do nothing when trying to set internal array cell empty
voodoo11 Jun 11, 2021
55ab673
Track SimpleRangeValue changes
voodoo11 Jun 11, 2021
f4d0a01
Compare raw input of parsing errors
voodoo11 Jun 11, 2021
036ab8f
Handle ParsingError case
voodoo11 Jun 11, 2021
2dfe388
Cleanup
voodoo11 Jun 11, 2021
48252d8
Working undo/redo
voodoo11 Jun 11, 2021
d1cde5e
Do not allow to move rows inside array
voodoo11 Jun 12, 2021
5ab2606
Update js docs
voodoo11 Jun 12, 2021
6190cef
Fix rebase
voodoo11 Jun 12, 2021
09bb4bd
Merge branch 'develop' into jk/matrices-take-2-cruds
izulin Jun 17, 2021
5c8efe5
Merge branch 'develop' into jk/matrices-take-2-cruds
izulin Jun 17, 2021
ec581ab
imports
izulin Jun 17, 2021
7d26afc
Enable tests
voodoo11 Jun 18, 2021
3152155
ColumnIndex specs for arrays
voodoo11 Jun 20, 2021
73b6950
Fix test
voodoo11 Jun 23, 2021
7d1df27
Ensure DependencyGraph changes are cleared after building graph
voodoo11 Jun 23, 2021
d9bf831
Ignore EmptyValue in columnIndex
voodoo11 Jun 25, 2021
b28ed81
Apply array changes in all cases
voodoo11 Jun 25, 2021
7070b5e
Gather changes when removing rows
voodoo11 Jun 25, 2021
346e5d4
Make sure range edges are adjusted properly
voodoo11 Jun 25, 2021
dc15310
Linter
voodoo11 Jun 26, 2021
aad74cd
Remove console.log
voodoo11 Jun 26, 2021
5a3ec5c
Cleanup
voodoo11 Jun 27, 2021
20ddf9f
Fix lgtm complaints
voodoo11 Jun 27, 2021
0a44540
Adjust adding columns by analogy
voodoo11 Jun 26, 2021
604b283
ColumnIndex needs to be adjusted
voodoo11 Jun 26, 2021
ebf8f9e
Adjust removing columns by analogy
voodoo11 Jun 26, 2021
3372639
ColumnIndex needs to be adjusted
voodoo11 Jun 26, 2021
8d6b95e
Do not allow to move columns inside array
voodoo11 Jun 27, 2021
c29f3ac
Cleanup
voodoo11 Jun 27, 2021
a4ba74d
Fix browser tests
voodoo11 Jun 27, 2021
ff6f3a1
Fix browser tests
voodoo11 Jun 27, 2021
9c40964
Adjust tsdoc
voodoo11 Jul 2, 2021
861737a
Apply suggestions from code review
voodoo11 Jul 2, 2021
57834fe
Adjust tsdocs
voodoo11 Jul 2, 2021
623c0c2
Merge branch 'develop' into jk/matrices-take-2-cruds
voodoo11 Jul 2, 2021
c027918
Update CHANGELOG
voodoo11 Jul 2, 2021
64932dd
Merge branch 'jk/matrices-take-2-cruds' into jk/matrices-take-2-cruds…
voodoo11 Jul 2, 2021
a895bf5
Adjust tsdocs
voodoo11 Jul 2, 2021
8fca663
Update changelog
voodoo11 Jul 2, 2021
92a04a2
Adjust tsdocs
voodoo11 Jul 2, 2021
b355e1d
SPILL array error
voodoo11 Jul 5, 2021
c3cf3c2
SPILL instead of REF
voodoo11 Jul 5, 2021
519622d
CHANGELOG
voodoo11 Jul 5, 2021
9af813e
CHANGELOG
voodoo11 Jul 5, 2021
878265a
Merge branch 'develop' into jk/matrices-take-2-cruds
voodoo11 Jul 5, 2021
ebad033
Merge branch 'jk/matrices-take-2-cruds' into jk/matrices-take-2-cruds…
voodoo11 Jul 5, 2021
2012c31
Unused import
voodoo11 Jul 5, 2021
0108e11
Merge branch 'develop' into jk/matrices-take-2-cruds-part-2
voodoo11 Jul 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Breaking change**: Removed the free non-commercial license.
- **Breaking change**: Changed behaviour of `setCellContents` so that it is possible to override space occupied by spilled array. (#708)
- **Breaking change**: Changed behaviour of `addRows/removeRows` so that it is possible to add/remove rows across spilled array without changing array size. (#708)
- **Breaking change**: Changed behaviour of `addColumns/removeColumns` so that it is possible to add/remove columns across spilled array without changing array size. (#732)
- Changed SWITCH function, so it takes array as its first argument.
- Changed TRANSPOSE function, so it works with data of any type. (#708)

Expand Down
17 changes: 3 additions & 14 deletions src/CrudOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ export class CrudOperations {
if (rowEnd < rowStart) {
throw new InvalidArgumentsError('starting row to be smaller than the ending row.')
}

if (!this.sheetMapping.hasSheetWithId(sheet)) {
throw new NoSheetWithIdError(sheet)
}
Expand All @@ -496,13 +495,6 @@ export class CrudOperations {
if (!isNonnegativeInteger(column) || !isPositiveInteger(numberOfColumnsToAdd)) {
throw new InvalidArgumentsError('column number to be nonnegative and number of columns to add to be positive.')
}

if (isPositiveInteger(column)
&& this.dependencyGraph.matrixMapping.isFormulaMatrixInColumn(sheet, column - 1)
&& this.dependencyGraph.matrixMapping.isFormulaMatrixInColumn(sheet, column)
) {
throw new TargetLocationHasMatrixError()
}
}
}

Expand All @@ -516,15 +508,9 @@ export class CrudOperations {
if (columnEnd < columnStart) {
throw new InvalidArgumentsError('starting column to be smaller than the ending column.')
}
const columnsToRemove = ColumnsSpan.fromColumnStartAndEnd(sheet, columnStart, columnEnd)

if (!this.sheetMapping.hasSheetWithId(sheet)) {
throw new NoSheetWithIdError(sheet)
}

if (this.dependencyGraph.matrixMapping.isFormulaMatrixInColumns(columnsToRemove)) {
throw new SourceLocationHasMatrixError()
}
}
}

Expand Down Expand Up @@ -577,6 +563,9 @@ export class CrudOperations {
if (this.dependencyGraph.matrixMapping.isFormulaMatrixInRange(sourceRange)) {
throw new SourceLocationHasMatrixError()
}
if (targetColumn > 0 && this.dependencyGraph.matrixMapping.isFormulaMatrixInAllColumns(ColumnsSpan.fromNumberOfColumns(sheet, targetColumn - 1, 2))) {
throw new TargetLocationHasMatrixError()
}
}

public ensureItIsPossibleToAddSheet(name: string): void {
Expand Down
89 changes: 72 additions & 17 deletions src/DependencyGraph/DependencyGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class DependencyGraph {
return vertex
}

public removeRows(removedRows: RowsSpan): RemoveRowsResult {
public removeRows(removedRows: RowsSpan): EagerChangesGraphChangeResult {
this.stats.measure(StatType.ADJUSTING_GRAPH, () => {
for (const [address, vertex] of this.addressMapping.entriesFromRowsSpan(removedRows)) {
for (const adjacentNode of this.graph.adjacentNodes(vertex)) {
Expand Down Expand Up @@ -348,18 +348,19 @@ export class DependencyGraph {
this.addStructuralNodesToChangeSet()
}

public removeColumns(removedColumns: ColumnsSpan) {
if (this.matrixMapping.isFormulaMatrixInColumns(removedColumns)) {
throw Error('It is not possible to remove column within matrix')
}

public removeColumns(removedColumns: ColumnsSpan): EagerChangesGraphChangeResult {
this.stats.measure(StatType.ADJUSTING_GRAPH, () => {
for (const vertex of this.addressMapping.verticesFromColumnsSpan(removedColumns)) {
for (const [address, vertex] of this.addressMapping.entriesFromColumnsSpan(removedColumns)) {
for (const adjacentNode of this.graph.adjacentNodes(vertex)) {
this.graph.markNodeAsSpecialRecentlyChanged(adjacentNode)
}
if (vertex instanceof MatrixVertex) {
continue
if (vertex.isLeftCorner(address)) {
this.shrinkMatrixToCorner(vertex)
this.matrixMapping.removeMatrix(vertex.getRange())
} else {
continue
}
}
this.removeVertex(vertex)
}
Expand All @@ -369,14 +370,24 @@ export class DependencyGraph {
this.addressMapping.removeColumns(removedColumns)
})

this.stats.measure(StatType.ADJUSTING_RANGES, () => {
this.truncateRanges(removedColumns, address => address.col)
const affectedArrays = this.stats.measure(StatType.ADJUSTING_RANGES, () => {
const affectedRanges = this.truncateRanges(removedColumns, address => address.col)
return this.getMatrixVerticesRelatedToRanges(affectedRanges)
})

this.stats.measure(StatType.ADJUSTING_MATRIX_MAPPING, () => {
return this.fixMatricesAfterRemovingColumns(removedColumns.sheet, removedColumns.columnStart, removedColumns.numberOfColumns)
})

this.addStructuralNodesToChangeSet()

return {
affectedArrays,
contentChanges: this.getAndClearContentChanges(),
}
}

public addRows(addedRows: RowsSpan): AddRowsResult {
public addRows(addedRows: RowsSpan): ArrayAffectingGraphChangeResult {
this.stats.measure(StatType.ADJUSTING_ADDRESS_MAPPING, () => {
this.addressMapping.addRows(addedRows.sheet, addedRows.rowStart, addedRows.numberOfRows)
})
Expand All @@ -400,21 +411,28 @@ export class DependencyGraph {
return { affectedArrays }
}

public addColumns(addedColumns: ColumnsSpan) {
public addColumns(addedColumns: ColumnsSpan): EagerChangesGraphChangeResult {
this.stats.measure(StatType.ADJUSTING_ADDRESS_MAPPING, () => {
this.addressMapping.addColumns(addedColumns.sheet, addedColumns.columnStart, addedColumns.numberOfColumns)
})

this.stats.measure(StatType.ADJUSTING_RANGES, () => {
this.rangeMapping.moveAllRangesInSheetAfterColumnByColumns(addedColumns.sheet, addedColumns.columnStart, addedColumns.numberOfColumns)
const affectedArrays = this.stats.measure(StatType.ADJUSTING_RANGES, () => {
const result = this.rangeMapping.moveAllRangesInSheetAfterColumnByColumns(addedColumns.sheet, addedColumns.columnStart, addedColumns.numberOfColumns)
this.fixRangesWhenAddingColumns(addedColumns.sheet, addedColumns.columnStart, addedColumns.numberOfColumns)
return this.getMatrixVerticesRelatedToRanges(result.verticesWithChangedSize)
})

this.stats.measure(StatType.ADJUSTING_MATRIX_MAPPING, () => {
return this.fixMatricesAfterAddingColumn(addedColumns.sheet, addedColumns.columnStart, addedColumns.numberOfColumns)
})

for (const vertex of this.addressMapping.verticesFromColumnsSpan(addedColumns)) {
this.graph.markNodeAsSpecialRecentlyChanged(vertex)
}

this.addStructuralNodesToChangeSet()

return {affectedArrays, contentChanges: this.getAndClearContentChanges()}
}

public ensureNoMatrixInRange(range: AbsoluteCellRange) {
Expand Down Expand Up @@ -1008,7 +1026,9 @@ export class DependencyGraph {
for (let row = rowStart; row <= matrixRange.end.row; ++row) {
const destination = simpleCellAddress(sheet, col, row)
const source = simpleCellAddress(sheet, col, row + numberOfRows)
const value = matrix.getMatrixCellValue(destination)
this.addressMapping.moveCell(source, destination)
this.changes.addChange(EmptyValue, source, value)
}
}
}
Expand All @@ -1030,6 +1050,42 @@ export class DependencyGraph {
}
}


private fixMatricesAfterAddingColumn(sheet: number, columnStart: number, numberOfColumns: number) {
this.matrixMapping.moveMatrixVerticesAfterColumnByColumns(sheet, columnStart, numberOfColumns)
if (columnStart <= 0) {
return
}
for (const [, matrix] of this.matrixMapping.matricesInCols(ColumnsSpan.fromColumnStartAndEnd(sheet, columnStart - 1, columnStart - 1))) {
const matrixRange = matrix.getRange()
for (let row = matrixRange.start.row; row <= matrixRange.end.row; ++row) {
for (let col = columnStart; col <= matrixRange.end.col; ++col) {
const destination = simpleCellAddress(sheet, col, row)
const source = simpleCellAddress(sheet, col + numberOfColumns, row)
const value = matrix.getMatrixCellValue(destination)
this.addressMapping.moveCell(source, destination)
this.changes.addChange(EmptyValue, source, value)
}
}
}
}

private fixMatricesAfterRemovingColumns(sheet: number, columnStart: number, numberOfColumns: number) {
this.matrixMapping.moveMatrixVerticesAfterColumnByColumns(sheet, columnStart, -numberOfColumns)
if (columnStart <= 0) {
return
}
for (const [, matrix] of this.matrixMapping.matricesInCols(ColumnsSpan.fromColumnStartAndEnd(sheet, columnStart - 1, columnStart - 1))) {
if (this.isThereSpaceForMatrix(matrix)) {
for (const address of matrix.getRange().addresses(this)) {
this.addressMapping.setCell(address, matrix)
}
} else {
this.setNoSpaceIfMatrix(matrix)
}
}
}

private shrinkPossibleMatrixAndGetCell(address: SimpleCellAddress): Maybe<CellVertex> {
const vertex = this.getCell(address)
if (!(vertex instanceof MatrixVertex)) {
Expand Down Expand Up @@ -1084,11 +1140,10 @@ export class DependencyGraph {
}
}

export interface AddRowsResult {
export interface ArrayAffectingGraphChangeResult {
affectedArrays: Set<MatrixVertex>,
}

export interface RemoveRowsResult {
affectedArrays: Set<MatrixVertex>,
export interface EagerChangesGraphChangeResult extends ArrayAffectingGraphChangeResult {
contentChanges: ContentChanges,
}
26 changes: 21 additions & 5 deletions src/DependencyGraph/MatrixMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ export class MatrixMapping {
}
}

public* matricesInCols(col: ColumnsSpan): IterableIterator<[string, MatrixVertex]> {
for (const [mtxKey, mtx] of this.matrixMapping.entries()) {
if (mtx.spansThroughSheetColumn(col.sheet, col.columnStart, col.columnEnd)) {
yield [mtxKey, mtx]
}
}
}

public isFormulaMatrixInRow(sheet: number, row: number): boolean {
for (const mtx of this.matrixMapping.values()) {
if (mtx.spansThroughSheetRows(sheet, row)) {
Expand All @@ -57,7 +65,7 @@ export class MatrixMapping {
return false
}

public isFormulaMatrixInAllRows(span: RowsSpan) {
public isFormulaMatrixInAllRows(span: RowsSpan): boolean {
let result = true
for (const row of span.rows()) {
if (!this.isFormulaMatrixInRow(span.sheet, row)) {
Expand All @@ -76,13 +84,14 @@ export class MatrixMapping {
return false
}

public isFormulaMatrixInColumns(span: ColumnsSpan) {
public isFormulaMatrixInAllColumns(span: ColumnsSpan): boolean {
let result = true
for (const col of span.columns()) {
if (this.isFormulaMatrixInColumn(span.sheet, col)) {
return true
if (!this.isFormulaMatrixInColumn(span.sheet, col)) {
result = false
}
}
return false
return result
}

public isFormulaMatrixInRange(range: AbsoluteCellRange) {
Expand Down Expand Up @@ -114,6 +123,13 @@ export class MatrixMapping {
})
}

public moveMatrixVerticesAfterColumnByColumns(sheet: number, column: number, numberOfColumns: number) {
this.updateMatrixVerticesInSheet(sheet, (key: string, vertex: MatrixVertex) => {
const range = vertex.getRange()
return column <= range.start.col ? [range.shifted(numberOfColumns, 0), vertex] : undefined
})
}

private updateMatrixVerticesInSheet(sheet: number, fn: (key: string, vertex: MatrixVertex) => Maybe<[AbsoluteCellRange, MatrixVertex]>) {
const updated = Array<[AbsoluteCellRange, MatrixVertex]>()

Expand Down
4 changes: 2 additions & 2 deletions src/DependencyGraph/RangeMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export class RangeMapping {
})
}

public moveAllRangesInSheetAfterColumnByColumns(sheet: number, column: number, numberOfColumns: number) {
this.updateVerticesFromSheet(sheet, (key: string, vertex: RangeVertex) => {
public moveAllRangesInSheetAfterColumnByColumns(sheet: number, column: number, numberOfColumns: number): AdjustRangesResult {
return this.updateVerticesFromSheet(sheet, (key: string, vertex: RangeVertex) => {
if (column <= vertex.start.col) {
vertex.range.shiftByColumns(numberOfColumns)
return {
Expand Down
6 changes: 2 additions & 4 deletions src/HyperFormula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ export class HyperFormula implements TypedEmitter {
* Returns information whether it is possible to add columns into a specified position in a given sheet.
* Checks against particular rules to ascertain that addColumns can be called.
* If returns `true`, doing [[addColumns]] operation won't throw any errors.
* Returns `false` if the operation might be disrupted and causes side-effects by the fact that there is a matrix inside the selected columns.
* Returns `false` if adding columns would exceed the sheet size limit or given arguments are invalid.
*
* @param {number} sheetId - sheet ID in which columns will be added
* @param {ColumnRowIndex[]} indexes - non-contiguous indexes with format: [column, amount], where column is a column number from which new columns will be added
Expand Down Expand Up @@ -1725,7 +1725,6 @@ export class HyperFormula implements TypedEmitter {
* @throws [[NoSheetWithIdError]] when the given sheet ID does not exist
* @throws [[InvalidArgumentsError]] when the given arguments are invalid
* @throws [[SheetSizeLimitExceededError]] when performing this operation would result in sheet size limits exceeding
* @throws [[TargetLocationHasMatrixError]] when the selected position has matrix inside
*
* @example
* ```js
Expand Down Expand Up @@ -1754,7 +1753,7 @@ export class HyperFormula implements TypedEmitter {
* Returns information whether it is possible to remove columns from a specified position in a given sheet.
* Checks against particular rules to ascertain that removeColumns can be called.
* If returns `true`, doing [[removeColumns]] operation won't throw any errors.
* Returns `false` if the operation might be disrupted and causes side-effects by the fact that there is a matrix inside the selected columns.
* Returns `false` if given arguments are invalid.
*
* @param {number} sheetId - sheet ID from which columns will be removed
* @param {ColumnRowIndex[]} indexes - non-contiguous indexes with format [column, amount]
Expand Down Expand Up @@ -1799,7 +1798,6 @@ export class HyperFormula implements TypedEmitter {
* @throws [[ExpectedValueOfTypeError]] if any of its basic type argument is of wrong type
* @throws [[NoSheetWithIdError]] when the given sheet ID does not exist
* @throws [[InvalidArgumentsError]] when the given arguments are invalid
* @throws [[SourceLocationHasMatrixError]] when the selected position has matrix inside
*
* @example
* ```js
Expand Down
10 changes: 8 additions & 2 deletions src/Operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ export class Operations {
removedCells.push({address, cellType: this.getClipboardCell(address)})
}

this.dependencyGraph.removeColumns(columnsToRemove)
const {affectedArrays, contentChanges} = this.dependencyGraph.removeColumns(columnsToRemove)
this.columnSearch.applyChanges(contentChanges.getChanges())
this.columnSearch.removeColumns(columnsToRemove)

let version: number
Expand All @@ -527,6 +528,8 @@ export class Operations {
version = this.lazilyTransformingAstService.addTransformation(transformation)
})

this.rewriteAffectedMatrices(affectedArrays)

return {
version: version!,
removedCells,
Expand Down Expand Up @@ -584,14 +587,17 @@ export class Operations {
return
}

this.dependencyGraph.addColumns(addedColumns)
const {affectedArrays, contentChanges} = this.dependencyGraph.addColumns(addedColumns)
this.columnSearch.addColumns(addedColumns)
this.columnSearch.applyChanges(contentChanges.getChanges())

this.stats.measure(StatType.TRANSFORM_ASTS, () => {
const transformation = new AddColumnsTransformer(addedColumns)
transformation.performEagerTransformations(this.dependencyGraph, this.parser)
this.lazilyTransformingAstService.addTransformation(transformation)
})

this.rewriteAffectedMatrices(affectedArrays)
}

public getOldContent(address: SimpleCellAddress): [SimpleCellAddress, ClipboardCell] {
Expand Down
Loading