Commit ae5cf169 by 李伟康

提交代码

1 parent 22a5beca
...@@ -179,7 +179,7 @@ class Draw { ...@@ -179,7 +179,7 @@ class Draw {
let lastText = '', lastArr = e.split('') let lastText = '', lastArr = e.split('')
lastArr.map(i => { lastArr.map(i => {
lastText += i lastText += i
if (this.getTextWidth(lastText) > width - fontX - this.getTextWidth('…') - fontSize) throw lastText if (this.getTextWidth(lastText) > width - fontX - this.getTextWidth('…')) throw lastText
}) })
} catch (error) { } catch (error) {
e = `${error}…` e = `${error}…`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!