Skip to content

Commit c47d258

Browse files
committed
Unroll redundant change
1 parent 0154571 commit c47d258

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/drawing/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
624624

625625
var numLines = (svgTextUtils.lineCount(s) - 1) * LINE_SPACING + 1;
626626
var dx = TEXTOFFSETSIGN[h] * r;
627-
var dy = fontSize * 0.75 + TEXTOFFSETSIGN[v] * r + (TEXTOFFSETSIGN[v] - 1) * numLines * fontSize / 2;
627+
var dy = fontSize * 0.75 + TEXTOFFSETSIGN[v] * r +
628+
(TEXTOFFSETSIGN[v] - 1) * numLines * fontSize / 2;
628629

629630
// fix the overall text group position
630631
s.attr('text-anchor', h);

0 commit comments

Comments
 (0)