@@ -5,7 +5,7 @@ var Lib = require('../../lib');
55
66var Drawing = require ( '../../components/drawing' ) ;
77var Colorscale = require ( '../../components/colorscale' ) ;
8- var Color = require ( '../../components/color' ) ;
8+ const Color = require ( '../../components/color' ) ;
99var DESELECTDIM = require ( '../../constants/interactions' ) . DESELECTDIM ;
1010
1111// Stroke each arrow path according to the trace colorscale, using marker.color
@@ -37,18 +37,18 @@ function colorscaleStroke(paths, trace) {
3737// A color-string array is not a colorscale. Apply each string here, because
3838// `lineGroupStyle` paints an array as black.
3939const strokeArrowColors = ( paths , trace ) => {
40- if ( trace . _hasColorscale ) {
40+ if ( trace . _hasColorscale ) {
4141 colorscaleStroke ( paths , trace ) ;
4242 return ;
4343 }
4444
4545 const markerColor = ( trace . marker || { } ) . color ;
46- if ( ! Lib . isArrayOrTypedArray ( markerColor ) ) return ;
46+ if ( ! Lib . isArrayOrTypedArray ( markerColor ) ) return ;
4747
48- paths . style ( 'stroke' , function ( cdi ) {
49- if ( markerColor . length > cdi . i ) {
48+ paths . style ( 'stroke' , function ( cdi ) {
49+ if ( markerColor . length > cdi . i ) {
5050 const color = markerColor [ cdi . i ] ;
51- if ( Color . isValid ( color ) ) {
51+ if ( Color . isValid ( color ) ) {
5252 cdi . mcc = color ;
5353 return color ;
5454 }
@@ -117,8 +117,8 @@ function styleArrows(gd, cd, sel) {
117117}
118118
119119module . exports = {
120- style : style ,
121- styleOnSelect : styleOnSelect ,
122- colorscaleStroke : colorscaleStroke ,
123- strokeArrowColors : strokeArrowColors
120+ style,
121+ styleOnSelect,
122+ colorscaleStroke,
123+ strokeArrowColors
124124} ;
0 commit comments