Adopt CharSizeService in MouseHelper

This commit is contained in:
Daniel Imms
2019-06-08 15:20:03 -07:00
parent 38bb122bbd
commit 6246bb5026
10 changed files with 42 additions and 49 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export class CharSizeService implements ICharSizeService {
public height: number = 0;
private _measureStrategy: IMeasureStrategy;
public get hasValidDimensions(): boolean { return this.width > 0 && this.height > 0; }
public get hasValidSize(): boolean { return this.width > 0 && this.height > 0; }
private _onCharSizeChange = new EventEmitter2<string>();
public get onCharSizeChange(): IEvent<string> { return this._onCharSizeChange.event; }
+1 -1
View File
@@ -8,7 +8,7 @@ import { IEvent } from 'common/EventEmitter2';
export interface ICharSizeService {
readonly width: number;
readonly height: number;
readonly hasValidDimensions: boolean;
readonly hasValidSize: boolean;
readonly onCharSizeChange: IEvent<string>;