Commit 622bc806 by 李伟康

提交代码

1 parent 2d335221
...@@ -137,7 +137,7 @@ class Draw { ...@@ -137,7 +137,7 @@ class Draw {
try { try {
textArr.map(e => { textArr.map(e => {
newText += e newText += e
if (this.getTextWidth(newText) > width - fontX - fontSize) throw newText if (this.getTextWidth(newText) > width - fontX) throw newText
}) })
} catch (error) { } catch (error) {
newText = `${error}…` newText = `${error}…`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!