Skip to content

Commit c6efdde

Browse files
author
Eduardas Michelsonas
committed
#755 lint fixes
1 parent f6377e6 commit c6efdde

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/diagrams/sequence/sequenceRenderer.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ const drawMessage = function (elem, startx, stopx, verticalPos, msg, sequenceInd
217217
const breaklines = msg.message.split(/<br\/?>/ig)
218218
for (const breakline of breaklines) {
219219
textElem = g.append('text') // text label for the x axis
220-
.attr('x', txtCenter)
221-
.attr('y', verticalPos - 7 + counterBreaklines * breaklineOffset)
222-
.style('text-anchor', 'middle')
223-
.attr('class', 'messageText')
224-
.text(breakline.trim())
220+
.attr('x', txtCenter)
221+
.attr('y', verticalPos - 7 + counterBreaklines * breaklineOffset)
222+
.style('text-anchor', 'middle')
223+
.attr('class', 'messageText')
224+
.text(breakline.trim())
225225
counterBreaklines++
226226
}
227-
const offsetLineCounter = counterBreaklines-1
227+
const offsetLineCounter = counterBreaklines - 1
228228
const totalOffset = offsetLineCounter * breaklineOffset
229229

230230
let textWidth = (textElem._groups || textElem)[0][0].getBBox().width
@@ -239,7 +239,7 @@ const drawMessage = function (elem, startx, stopx, verticalPos, msg, sequenceInd
239239
(verticalPos + 30 + totalOffset) + ' ' + startx + ',' + (verticalPos + 20 + totalOffset))
240240
}
241241

242-
bounds.bumpVerticalPos(30+totalOffset)
242+
bounds.bumpVerticalPos(30 + totalOffset)
243243
const dx = Math.max(textWidth / 2, 100)
244244
bounds.insert(startx - dx, bounds.getVerticalPos() - 10 + totalOffset, stopx + dx, bounds.getVerticalPos() + totalOffset)
245245
} else {
@@ -248,7 +248,7 @@ const drawMessage = function (elem, startx, stopx, verticalPos, msg, sequenceInd
248248
line.attr('y1', verticalPos)
249249
line.attr('x2', stopx)
250250
line.attr('y2', verticalPos)
251-
bounds.insert(startx, bounds.getVerticalPos() - 10 + totalOffset, stopx, bounds.getVerticalPos()) + totalOffset
251+
bounds.insert(startx, bounds.getVerticalPos() - 10 + totalOffset, stopx, bounds.getVerticalPos() + totalOffset)
252252
}
253253
// Make an SVG Container
254254
// Draw the line

0 commit comments

Comments
 (0)