@@ -101,8 +101,7 @@ function drawOne(gd, index) {
101
101
102
102
// another group for text+background so that they can rotate together
103
103
var annTextGroup = annGroup . append ( 'g' )
104
- . classed ( 'annotation-text-g' , true )
105
- . attr ( 'data-index' , String ( index ) ) ;
104
+ . classed ( 'annotation-text-g' , true ) ;
106
105
107
106
var annTextGroupInner = annTextGroup . append ( 'g' )
108
107
. style ( 'pointer-events' , options . captureevents ? 'all' : null )
@@ -474,8 +473,7 @@ function drawOne(gd, index) {
474
473
475
474
var arrowGroup = annGroup . append ( 'g' )
476
475
. style ( { opacity : Color . opacity ( arrowColor ) } )
477
- . classed ( 'annotation-arrow-g' , true )
478
- . attr ( 'data-index' , String ( index ) ) ;
476
+ . classed ( 'annotation-arrow-g' , true ) ;
479
477
480
478
var arrow = arrowGroup . append ( 'path' )
481
479
. attr ( 'd' , 'M' + tailX + ',' + tailY + 'L' + headX + ',' + headY )
@@ -498,7 +496,6 @@ function drawOne(gd, index) {
498
496
. classed ( 'annotation' , true )
499
497
. classed ( 'anndrag' , true )
500
498
. attr ( {
501
- 'data-index' : String ( index ) ,
502
499
d : 'M3,3H-3V-3H3ZM0,0L' + ( tailX - arrowDragHeadX ) + ',' + ( tailY - arrowDragHeadY ) ,
503
500
transform : 'translate(' + arrowDragHeadX + ',' + arrowDragHeadY + ')'
504
501
} )
0 commit comments