Fix naming issue with serviceBrand

This commit is contained in:
Daniel Imms
2019-07-13 23:45:25 -07:00
parent 358a707835
commit a0e2c9b270
15 changed files with 36 additions and 38 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import { IEvent, EventEmitter } from 'common/EventEmitter';
import { ICharSizeService, IMouseService } from 'browser/services/Services';
export class MockCharSizeService implements ICharSizeService {
_serviceBrand: any;
serviceBrand: any;
get hasValidSize(): boolean { return this.width > 0 && this.height > 0; }
onCharSizeChange: IEvent<void> = new EventEmitter<void>().event;
constructor(public width: number, public height: number) {}
@@ -15,7 +15,7 @@ export class MockCharSizeService implements ICharSizeService {
}
export class MockMouseService implements IMouseService {
_serviceBrand: any;
serviceBrand: any;
public getCoords(event: {clientX: number, clientY: number}, element: HTMLElement, colCount: number, rowCount: number, isSelection?: boolean): [number, number] | undefined {
throw new Error('Not implemented');
}
+1 -1
View File
@@ -8,7 +8,7 @@ import { IEvent, EventEmitter } from 'common/EventEmitter';
import { ICharSizeService } from 'browser/services/Services';
export class CharSizeService implements ICharSizeService {
_serviceBrand: any;
serviceBrand: any;
public width: number = 0;
public height: number = 0;
+1 -1
View File
@@ -7,7 +7,7 @@ import { ICharSizeService, IRenderService, IMouseService } from './Services';
import { getCoords, getRawByteCoords } from 'browser/input/Mouse';
export class MouseService implements IMouseService {
_serviceBrand: any;
serviceBrand: any;
constructor(
@IRenderService private readonly _renderService: IRenderService,
+1 -1
View File
@@ -14,7 +14,7 @@ import { IOptionsService } from 'common/services/Services';
import { ICharSizeService, IRenderService } from 'browser/services/Services';
export class RenderService extends Disposable implements IRenderService {
_serviceBrand: any;
serviceBrand: any;
private _renderDebouncer: RenderDebouncer;
private _screenDprMonitor: ScreenDprMonitor;
+1 -1
View File
@@ -67,7 +67,7 @@ export const enum SelectionMode {
* when the selection is ready to be redrawn (on an animation frame).
*/
export class SelectionService implements ISelectionService {
_serviceBrand: any;
serviceBrand: any;
protected _model: SelectionModel;
+5 -5
View File
@@ -11,7 +11,7 @@ import { createDecorator } from 'common/services/ServiceRegistry';
export const ICharSizeService = createDecorator<ICharSizeService>('CharSizeService');
export interface ICharSizeService {
_serviceBrand: any;
serviceBrand: any;
readonly width: number;
readonly height: number;
@@ -24,7 +24,7 @@ export interface ICharSizeService {
export const IMouseService = createDecorator<IMouseService>('MouseService');
export interface IMouseService {
_serviceBrand: any;
serviceBrand: any;
getCoords(event: {clientX: number, clientY: number}, element: HTMLElement, colCount: number, rowCount: number, isSelection?: boolean): [number, number] | undefined;
getRawByteCoords(event: MouseEvent, element: HTMLElement, colCount: number, rowCount: number): { x: number, y: number } | undefined;
@@ -32,7 +32,7 @@ export interface IMouseService {
export const IRenderService = createDecorator<IRenderService>('RenderService');
export interface IRenderService {
_serviceBrand: any;
serviceBrand: any;
onDimensionsChange: IEvent<IRenderDimensions>;
onRender: IEvent<{ start: number, end: number }>;
@@ -60,7 +60,7 @@ export interface IRenderService {
export const ISelectionService = createDecorator<ISelectionService>('SelectionService');
export interface ISelectionService {
_serviceBrand: any;
serviceBrand: any;
readonly selectionText: string;
readonly hasSelection: boolean;
@@ -88,7 +88,7 @@ export interface ISelectionService {
export const ISoundService = createDecorator<ISoundService>('SoundService');
export interface ISoundService {
_serviceBrand: any;
serviceBrand: any;
playBellSound(): void;
}
+1 -1
View File
@@ -7,7 +7,7 @@ import { IOptionsService } from 'common/services/Services';
import { ISoundService } from 'browser/services/Services';
export class SoundService implements ISoundService {
_serviceBrand: any;
serviceBrand: any;
private static _audioContext: AudioContext;