get it to wrk

This commit is contained in:
meganrogge
2022-02-03 13:33:30 -06:00
parent ad59db9a8a
commit 912c33ca67
3 changed files with 81 additions and 73 deletions
+1 -10
View File
@@ -23,7 +23,6 @@ import { addDisposableDomListener } from 'browser/Lifecycle';
import { ICharacterJoinerService } from 'browser/services/Services';
import { CharData, ICellData } from 'common/Types';
import { AttributeData } from 'common/buffer/AttributeData';
import { DecorationRenderLayer } from 'browser/renderer/DecorationRenderLayer';
import { IBufferService } from 'common/services/Services';
export class WebglRenderer extends Disposable implements IRenderer {
@@ -117,15 +116,7 @@ export class WebglRenderer extends Disposable implements IRenderer {
public get textureAtlas(): HTMLCanvasElement | undefined {
return this._charAtlas?.cacheCanvas;
}
public registerDecoration(decorationOptions: IBufferDecorationOptions): IDecoration | undefined {
const decorationLayer = this._renderLayers.find(l => l instanceof DecorationRenderLayer);
if (decorationLayer instanceof DecorationRenderLayer) {
return decorationLayer.registerDecoration(decorationOptions);
}
return undefined;
}
public setColors(colors: IColorSet): void {
this._colors = colors;
// Clear layers and force a full render