fix lint
This commit is contained in:
parent
3d14c9c446
commit
19b85f12c7
@ -161,7 +161,7 @@ export default class Painter {
|
||||
// this.ctx.setFontSize(view.css.fontSize.toPx());
|
||||
// 计算行数
|
||||
let lines = 0;
|
||||
let linesArray=[];
|
||||
const linesArray = [];
|
||||
for (let i = 0; i < textArray.length; ++i) {
|
||||
const textLength = this.ctx.measureText(textArray[i]).width;
|
||||
const partWidth = view.css.width ? view.css.width.toPx() : textLength;
|
||||
@ -363,7 +363,7 @@ export default class Painter {
|
||||
lines,
|
||||
lineHeight,
|
||||
textArray,
|
||||
linesArray
|
||||
linesArray,
|
||||
} = extra;
|
||||
// 如果设置了id,则保留 text 的长度
|
||||
if (view.id) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user