tslint arrow-parens rule (#4003)

This commit is contained in:
Eugenio Romano
2018-11-23 01:06:56 +00:00
committed by GitHub
parent 51bb6a420f
commit 34a30c0f14
194 changed files with 725 additions and 723 deletions

View File

@@ -78,9 +78,9 @@ export class RaphaelMultilineTextDirective extends RaphaelBase implements OnInit
let letterWidth = textPaper.getBBox().width / text.length;
let removedLineBreaks = text.split('\n');
let actualRowLength = 0, formattedText = [];
removedLineBreaks.forEach(sentence => {
removedLineBreaks.forEach((sentence) => {
let words = sentence.split(' ');
words.forEach(word => {
words.forEach((word) => {
let length = word.length;
if (actualRowLength + (length * letterWidth) > elementWidth) {
formattedText.push('\n');