Skip to content

Commit

Permalink
fix: 优化参数字符串化
Browse files Browse the repository at this point in the history
  • Loading branch information
lcx-seima committed Aug 8, 2022
1 parent 75684ed commit 3627212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/s2-core/src/sheet-type/spread-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ export abstract class SpreadSheet extends EE {
.join(' ')
.trim();

return ctx.measureText(`${text}`).width;
return ctx.measureText(String(text)).width;
},
(text: any, font) => [text, ...values(font)].join(''),
);
Expand Down

0 comments on commit 3627212

Please sign in to comment.