Fix compile

This commit is contained in:
Daniel Imms
2022-10-08 09:11:28 -07:00
parent 00f6d3a88c
commit 94c3d11239
2 changed files with 10 additions and 7 deletions
+4 -2
View File
@@ -4,10 +4,11 @@
*/
import { IOptionsService } from 'common/services/Services';
import { IEvent, EventEmitter } from 'common/EventEmitter';
import { EventEmitter } from 'common/EventEmitter';
import { ICharSizeService } from 'browser/services/Services';
import { Disposable } from 'common/Lifecycle';
export class CharSizeService implements ICharSizeService {
export class CharSizeService extends Disposable implements ICharSizeService {
public serviceBrand: undefined;
public width: number = 0;
@@ -24,6 +25,7 @@ export class CharSizeService implements ICharSizeService {
parentElement: HTMLElement,
@IOptionsService private readonly _optionsService: IOptionsService
) {
super();
this._measureStrategy = new DomMeasureStrategy(document, parentElement, this._optionsService);
}