remove get CharData from codebase and deprecate method

This commit is contained in:
Jörg Breitbart
2019-01-12 17:50:19 +01:00
parent ece7192db7
commit 711ae65947
9 changed files with 221 additions and 199 deletions
+7
View File
@@ -129,6 +129,9 @@ export class CellData implements ICellData {
this.content = Content.IS_COMBINED | (value[CHAR_DATA_WIDTH_INDEX] << Content.WIDTH_SHIFT);
}
}
public get asCharData(): CharData {
return [this.fg, this.chars, this.width, this.code];
}
}
/**
@@ -150,6 +153,10 @@ export class BufferLine implements IBufferLine {
this.length = cols;
}
/**
* Get cell data CharData.
* @deprecated
*/
public get(index: number): CharData {
const content = this._data[index * CELL_SIZE + Cell.CONTENT];
const cp = content & Content.CODEPOINT_MASK;