Browse Source

fix: style

Peng Xiao 3 years ago
parent
commit
1236a0adef
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tldraw/packages/core/src/utils/getTextSize.ts

+ 5 - 1
tldraw/packages/core/src/utils/getTextSize.ts

@@ -61,7 +61,11 @@ const saveCached = (text: string, font: string, padding: number, size: [number,
   cache.set(key, size)
 }
 
-export function getTextLabelSize(text: string, fontOrStyles: string | TLTextMeasureStyles, padding = 0) {
+export function getTextLabelSize(
+  text: string,
+  fontOrStyles: string | TLTextMeasureStyles,
+  padding = 0
+) {
   if (!text) {
     return [16, 32]
   }