Skip to content

Commit 1a8f1ed

Browse files
committed
don't (uselessly) add annotation class to ann text group inner
1 parent 8b8bdea commit 1a8f1ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/annotations/draw.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ function drawOne(gd, index) {
168168
var font = options.font;
169169

170170
var annText = annTextGroupInner.append('text')
171-
.classed('annotation', true)
172171
.attr('data-unformatted', options.text)
173172
.text(options.text);
174173

@@ -493,7 +492,6 @@ function drawOne(gd, index) {
493492
arrowDragHeadY += options.standoff * (tailY - headY) / arrowLength;
494493
}
495494
var arrowDrag = arrowGroup.append('path')
496-
.classed('annotation', true)
497495
.classed('anndrag', true)
498496
.attr({
499497
d: 'M3,3H-3V-3H3ZM0,0L' + (tailX - arrowDragHeadX) + ',' + (tailY - arrowDragHeadY),

0 commit comments

Comments
 (0)