Skip to content

Commit

Permalink
Merge pull request #1631 from jlismore/approximateTextSize-typing-fix
Browse files Browse the repository at this point in the history
Approximate text size typing fix
  • Loading branch information
boygirl committed Jul 1, 2020
2 parents 5cd6da0 + 3b9b960 commit 98281e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/victory-core/src/index.d.ts
Expand Up @@ -680,7 +680,10 @@ export interface TextSizeStyleInterface {
}

export namespace TextSize {
export function approximateTextSize(text: string, style: TextSizeStyleInterface): number;
export function approximateTextSize(
text: string,
style?: TextSizeStyleInterface
): { width: number; height: number };
export function convertLengthToPixels(length: string, fontSize: number): number;
}

Expand Down

0 comments on commit 98281e9

Please sign in to comment.