Selection foreground for canvas (circular dep issue)

This commit is contained in:
Daniel Imms
2022-05-16 15:17:03 -07:00
parent eb96187801
commit f2b90d690f
5 changed files with 26 additions and 11 deletions
+4 -2
View File
@@ -7,6 +7,7 @@ import { IRenderDimensions } from 'browser/renderer/Types';
import { BaseRenderLayer } from 'browser/renderer/BaseRenderLayer';
import { IColorSet } from 'browser/Types';
import { IBufferService, IDecorationService, IOptionsService } from 'common/services/Services';
import { ISelectionService } from 'browser/services/Services';
interface ISelectionState {
start?: [number, number];
@@ -25,9 +26,10 @@ export class SelectionRenderLayer extends BaseRenderLayer {
rendererId: number,
@IBufferService bufferService: IBufferService,
@IOptionsService optionsService: IOptionsService,
@IDecorationService decorationService: IDecorationService
@IDecorationService decorationService: IDecorationService,
@ISelectionService selectionService: ISelectionService
) {
super(container, 'selection', zIndex, true, colors, rendererId, bufferService, optionsService, decorationService);
super(container, 'selection', zIndex, true, colors, rendererId, bufferService, optionsService, decorationService, selectionService);
this._clearState();
}