Adopt CharSizeService in MouseHelper
This commit is contained in:
@@ -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; }
|
||||
|
||||
Vendored
+1
-1
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user