File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -65,5 +65,6 @@ function styleOnSelect(gd, cd) {
65
65
module . exports = {
66
66
style : style ,
67
67
stylePoints : stylePoints ,
68
+ styleText : styleText ,
68
69
styleOnSelect : styleOnSelect
69
70
} ;
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ var d3 = require('d3');
12
12
var Drawing = require ( '../../components/drawing' ) ;
13
13
var Color = require ( '../../components/color' ) ;
14
14
15
- var stylePoints = require ( '../scatter/style' ) . stylePoints ;
15
+ var scatterStyle = require ( '../scatter/style' ) ;
16
+ var stylePoints = scatterStyle . stylePoints ;
17
+ var styleText = scatterStyle . styleText ;
16
18
17
19
module . exports = function style ( gd , calcTrace ) {
18
20
if ( calcTrace ) styleTrace ( gd , calcTrace ) ;
@@ -25,6 +27,7 @@ function styleTrace(gd, calcTrace) {
25
27
s . style ( 'opacity' , calcTrace [ 0 ] . trace . opacity ) ;
26
28
27
29
stylePoints ( s , trace , gd ) ;
30
+ styleText ( s , trace , gd ) ;
28
31
29
32
// this part is incompatible with Drawing.lineGroupStyle
30
33
s . selectAll ( 'path.js-line' )
You can’t perform that action at this time.
0 commit comments