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