Skip to content

Commit

Permalink
Update utils.ts (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac authored Aug 22, 2023
1 parent a511fb5 commit abd163e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layout/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export function measureText(text: string) {
let result = { height: 0, width: 0 };

if (text) {
result = calculateSize(text, {
// @ts-ignore
result = calculateSize.default(text, {
font: 'Arial, sans-serif',
fontSize: '14px'
});
Expand Down

0 comments on commit abd163e

Please sign in to comment.