Skip to content

Commit ababc49

Browse files
committed
Revert "don't (uselessly) add annotation class to ann text group inner"
This reverts commit 1a8f1ed.
1 parent 8ac2551 commit ababc49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/annotations/draw.js

+2
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ function drawRaw(gd, options, index, xa, ya) {
189189
var font = options.font;
190190

191191
var annText = annTextGroupInner.append('text')
192+
.classed('annotation', true)
192193
.attr('data-unformatted', options.text)
193194
.text(options.text);
194195

@@ -523,6 +524,7 @@ function drawRaw(gd, options, index, xa, ya) {
523524
arrowDragHeadY += options.standoff * (tailY - headY) / arrowLength;
524525
}
525526
var arrowDrag = arrowGroup.append('path')
527+
.classed('annotation', true)
526528
.classed('anndrag', true)
527529
.attr({
528530
d: 'M3,3H-3V-3H3ZM0,0L' + (tailX - arrowDragHeadX) + ',' + (tailY - arrowDragHeadY),

0 commit comments

Comments
 (0)