File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplat
13
13
var texttemplateAttrs = require ( '../../plots/template_attributes' ) . texttemplateAttrs ;
14
14
var colorScaleAttrs = require ( '../../components/colorscale/attributes' ) ;
15
15
var fontAttrs = require ( '../../plots/font_attributes' ) ;
16
- var constants = require ( './constants.js ' ) ;
16
+ var constants = require ( './constants' ) ;
17
17
18
18
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
19
19
Original file line number Diff line number Diff line change 10
10
'use strict' ;
11
11
12
12
module . exports = {
13
+ TEXTPAD : 3 , // padding in pixels around text
13
14
eventDataKeys : [ ]
14
15
} ;
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ var tickText = require('../../plots/cartesian/axes').tickText;
21
21
22
22
var style = require ( './style' ) ;
23
23
var helpers = require ( './helpers' ) ;
24
+ var constants = require ( './constants' ) ;
24
25
var attributes = require ( './attributes' ) ;
25
26
26
27
var attributeText = attributes . text ;
27
28
var attributeTextPosition = attributes . textposition ;
28
29
29
30
var appendArrayPointValue = require ( '../../components/fx/helpers' ) . appendArrayPointValue ;
30
31
31
- // padding in pixels around text
32
- var TEXTPAD = 3 ;
32
+ var TEXTPAD = constants . TEXTPAD ;
33
33
34
34
function dirSign ( a , b ) {
35
35
return ( a < b ) ? 1 : - 1 ;
You can’t perform that action at this time.
0 commit comments