@@ -11,8 +11,8 @@ import { IRenderLayer } from './Types';
1111import { LinkRenderLayer } from './LinkRenderLayer' ;
1212import { Disposable } from 'common/Lifecycle' ;
1313import { IColorSet , ILinkifier2 } from 'browser/Types' ;
14- import { ICharSizeService } from 'browser/services/Services' ;
15- import { IBufferService , IOptionsService , IInstantiationService } from 'common/services/Services' ;
14+ import { ICharacterJoinerService , ICharSizeService , ICoreBrowserService } from 'browser/services/Services' ;
15+ import { IBufferService , IOptionsService , IInstantiationService , IDecorationService , ICoreService } from 'common/services/Services' ;
1616import { removeTerminalFromCache } from './atlas/CharAtlasCache' ;
1717import { EventEmitter , IEvent } from 'common/EventEmitter' ;
1818import { observeDevicePixelDimensions } from 'browser/renderer/DevicePixelObserver' ;
@@ -34,18 +34,21 @@ export class CanvasRenderer extends Disposable implements IRenderer {
3434 private _colors : IColorSet ,
3535 private readonly _screenElement : HTMLElement ,
3636 linkifier2 : ILinkifier2 ,
37- instantiationService : IInstantiationService ,
3837 private readonly _bufferService : IBufferService ,
3938 private readonly _charSizeService : ICharSizeService ,
40- private readonly _optionsService : IOptionsService
39+ private readonly _optionsService : IOptionsService ,
40+ characterJoinerService : ICharacterJoinerService ,
41+ coreService : ICoreService ,
42+ coreBrowserService : ICoreBrowserService ,
43+ decorationService : IDecorationService
4144 ) {
4245 super ( ) ;
4346 const allowTransparency = this . _optionsService . rawOptions . allowTransparency ;
4447 this . _renderLayers = [
45- instantiationService . createInstance ( TextRenderLayer , this . _screenElement , 0 , this . _colors , allowTransparency , this . _id ) ,
46- instantiationService . createInstance ( SelectionRenderLayer , this . _screenElement , 1 , this . _colors , this . _id ) ,
47- instantiationService . createInstance ( LinkRenderLayer , this . _screenElement , 2 , this . _colors , this . _id , linkifier2 ) ,
48- instantiationService . createInstance ( CursorRenderLayer , this . _screenElement , 3 , this . _colors , this . _id , this . _onRequestRedraw )
48+ new TextRenderLayer ( this . _screenElement , 0 , this . _colors , allowTransparency , this . _id , this . _bufferService , this . _optionsService , characterJoinerService , decorationService ) ,
49+ new SelectionRenderLayer ( this . _screenElement , 1 , this . _colors , this . _id , this . _bufferService , this . _optionsService , decorationService ) ,
50+ new LinkRenderLayer ( this . _screenElement , 2 , this . _colors , this . _id , linkifier2 , this . _bufferService , this . _optionsService , decorationService ) ,
51+ new CursorRenderLayer ( this . _screenElement , 3 , this . _colors , this . _id , this . _onRequestRedraw , this . _bufferService , this . _optionsService , coreService , coreBrowserService , decorationService )
4952 ] ;
5053 this . dimensions = {
5154 scaledCharWidth : 0 ,
0 commit comments