mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
+1
-1
@@ -235,7 +235,7 @@ module.exports = class CanvasUtil {
|
||||
}
|
||||
if (currentChunk !== '') {
|
||||
chunks.push(currentChunk);
|
||||
}
|
||||
}
|
||||
for (let k = 0; k < chunks.length; k++) {
|
||||
if (ctx.measureText(`${currentLine} ${chunks[k]}`).width > maxWidth) {
|
||||
lines.push(currentLine.trim());
|
||||
|
||||
Reference in New Issue
Block a user