Methods
addFold
- addFold(fold): void
Returns void
addRemoveChars
- addRemoveChars(row, column, len): void
Parameters
row: number
column: number
len: number
Returns void
containsRow
- containsRow(row): boolean
Returns boolean
getNextFoldTo
- getNextFoldTo(row, column): {
fold: Fold;
kind: string;
} Parameters
row: number
column: number
Returns {
fold: Fold;
kind: string;
}
idxToPosition
- idxToPosition(idx): Point
Returns Point
merge
- merge(foldLineNext): void
Returns void
shiftRow
- shiftRow(shift): void
Returns void
split
- split(row, column): FoldLine
Parameters
row: number
column: number
toString
- toString(): string
Returns string
walk
- walk(callback, endRow, endColumn): void
Parameters
callback: Function
endRow: number
endColumn: number
Returns void
If an array is passed in, the folds are expected to be sorted already.