chore: Minor refactoring for consistency (#2425)

This commit is contained in:
Lipis 2020-11-29 18:32:51 +02:00 committed by GitHub
parent 204c8370a0
commit b21fd49412
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 76 additions and 82 deletions

View file

@ -147,11 +147,11 @@ const drawElementOnCanvas = (
: element.textAlign === "right"
? element.width
: 0;
for (let i = 0; i < lines.length; i++) {
for (let index = 0; index < lines.length; index++) {
context.fillText(
lines[i],
lines[index],
horizontalOffset,
(i + 1) * lineHeight - verticalOffset,
(index + 1) * lineHeight - verticalOffset,
);
}
context.fillStyle = fillStyle;