@@ -363,7 +363,7 @@ annotations.draw = function(gd, index, opt, value) {
363363 . attr ( 'data-unformatted' , options . text )
364364 . text ( options . text ) ;
365365
366- function textLayout ( s ) {
366+ function textLayout ( s ) {
367367 s . call ( Plotly . Drawing . font , font )
368368 . attr ( {
369369 'text-anchor' : {
@@ -375,7 +375,7 @@ annotations.draw = function(gd, index, opt, value) {
375375 return s ;
376376 }
377377
378- function drawGraphicalElements ( ) {
378+ function drawGraphicalElements ( ) {
379379
380380 // make sure lines are aligned the way they will be
381381 // at the end, even if their position changes
@@ -395,8 +395,8 @@ annotations.draw = function(gd, index, opt, value) {
395395 options . _w = annwidth ;
396396 options . _h = annheight ;
397397
398- function shiftFraction ( v , anchor ) {
399- if ( anchor === 'auto' ) {
398+ function shiftFraction ( v , anchor ) {
399+ if ( anchor === 'auto' ) {
400400 if ( v < 1 / 3 ) anchor = 'left' ;
401401 else if ( v > 2 / 3 ) anchor = 'right' ;
402402 else anchor = 'center' ;
@@ -469,7 +469,7 @@ annotations.draw = function(gd, index, opt, value) {
469469
470470 // make sure the arrowhead (if there is one)
471471 // and the annotation center are visible
472- if ( options . showarrow ) {
472+ if ( options . showarrow ) {
473473 arrowX = Plotly . Lib . constrain ( annPosPx . x - options . ax , 1 , fullLayout . width - 1 ) ;
474474 arrowY = Plotly . Lib . constrain ( annPosPx . y - options . ay , 1 , fullLayout . height - 1 ) ;
475475 }
@@ -498,7 +498,7 @@ annotations.draw = function(gd, index, opt, value) {
498498
499499 // add the arrow
500500 // uses options[arrowwidth,arrowcolor,arrowhead] for styling
501- var drawArrow = function ( dx , dy ) {
501+ var drawArrow = function ( dx , dy ) {
502502 d3 . select ( gd )
503503 . selectAll ( '.annotation-arrow-g[data-index="' + index + '"]' )
504504 . remove ( ) ;
@@ -541,7 +541,7 @@ annotations.draw = function(gd, index, opt, value) {
541541 return ;
542542 }
543543
544- edges . forEach ( function ( x ) {
544+ edges . forEach ( function ( x ) {
545545 var p = lineIntersect ( arrowX0 , arrowY0 , arrowX , arrowY ,
546546 x [ 0 ] , x [ 1 ] , x [ 2 ] , x [ 3 ] ) ;
547547 if ( p ) {
@@ -711,7 +711,7 @@ annotations.draw = function(gd, index, opt, value) {
711711 if ( gd . _context . editable ) {
712712 anntext . call ( Plotly . util . makeEditable , ann )
713713 . call ( textLayout )
714- . on ( 'edit' , function ( _text ) {
714+ . on ( 'edit' , function ( _text ) {
715715 options . text = _text ;
716716 this . attr ( { 'data-unformatted' : options . text } ) ;
717717 this . call ( textLayout ) ;
@@ -839,7 +839,7 @@ annotations.calcAutorange = function(gd) {
839839 if ( ! annotationList . length || ! gd . _fullData . length ) return ;
840840
841841 var annotationAxes = { } ;
842- annotationList . forEach ( function ( ann ) {
842+ annotationList . forEach ( function ( ann ) {
843843 annotationAxes [ ann . xref ] = true ;
844844 annotationAxes [ ann . yref ] = true ;
845845 } ) ;
@@ -863,7 +863,7 @@ function annAutorange(gd) {
863863 // relative to their anchor points
864864 // use the arrow and the text bg rectangle,
865865 // as the whole anno may include hidden text in its bbox
866- fullLayout . annotations . forEach ( function ( ann ) {
866+ fullLayout . annotations . forEach ( function ( ann ) {
867867 var xa = Plotly . Axes . getFromId ( gd , ann . xref ) ,
868868 ya = Plotly . Axes . getFromId ( gd , ann . yref ) ;
869869 if ( ! ( xa || ya ) ) return ;
0 commit comments