Skip to content

Commit

Permalink
remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhornsten committed Oct 13, 2023
1 parent 5afef2f commit d96ea48
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions public/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ function splitToLines(ctx, text, maxWidth) {
for (var i = 1; i < words.length; i++) {
var word = words[i];
var width = ctx.measureText(currentLine + " " + word).width;
console.log(`Word: ${word}, Width: ${width}, MaxWidth: ${maxWidth}`);
if (width < maxWidth) {
currentLine += " " + word;
} else {
Expand All @@ -17,8 +16,6 @@ function splitToLines(ctx, text, maxWidth) {

lines.push(currentLine);

console.log(lines);

return lines;
}

Expand Down

0 comments on commit d96ea48

Please sign in to comment.