fix: style

pull/6693/head
Peng Xiao 2022-09-15 17:16:08 +08:00
parent 9371af9941
commit 1236a0adef
1 changed files with 5 additions and 1 deletions

View File

@ -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]
}