Ensure CharMeasure exposes integers
This commit is contained in:
@@ -59,8 +59,8 @@ export class CharMeasure extends EventEmitter implements ICharMeasure {
|
||||
return;
|
||||
}
|
||||
if (this._width !== geometry.width || this._height !== geometry.height) {
|
||||
this._width = geometry.width;
|
||||
this._height = geometry.height;
|
||||
this._width = Math.ceil(geometry.width);
|
||||
this._height = Math.ceil(geometry.height);
|
||||
this.emit('charsizechanged');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user