From 5f29272db141182764d636125c0fab4280b7df2b Mon Sep 17 00:00:00 2001 From: Bradley Hill Date: Thu, 28 Feb 2019 16:21:38 -0600 Subject: [PATCH] Update fabric Text.measureLine to correct return object --- types/fabric/fabric-impl.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/fabric/fabric-impl.d.ts b/types/fabric/fabric-impl.d.ts index b2a4c0066d..8e973de1ab 100644 --- a/types/fabric/fabric-impl.d.ts +++ b/types/fabric/fabric-impl.d.ts @@ -3815,9 +3815,10 @@ export class Text extends Object { /** * measure a text line measuring all characters. * @param {Number} lineIndex line number - * @return {Number} Line width + * @return {Object} object.width total width of characters + * @return {Object} object.numOfSpaces length of chars that match this._reSpacesAndTabs */ - measureLine(lineIndex: number): number; + measureLine(lineIndex: number): { width: number, numOfSpaces: number }; /** * Calculate height of line at 'lineIndex' * @param {Number} lineIndex index of line to calculate