@@ -36,8 +36,6 @@ function plotOne(gd, plotinfo, cd) {
36
36
aax = trace . aaxis ,
37
37
bax = trace . baxis ,
38
38
fullLayout = gd . _fullLayout ;
39
- // uid = trace.uid,
40
- // id = 'carpet' + uid;
41
39
42
40
var gridLayer = plotinfo . plot . selectAll ( '.carpetlayer' ) ;
43
41
var clipLayer = makeg ( fullLayout . _defs , 'g' , 'clips' ) ;
@@ -65,14 +63,11 @@ function plotOne(gd, plotinfo, cd) {
65
63
66
64
drawAxisTitles ( gd , labelLayer , trace , t , xa , ya , maxAExtent , maxBExtent ) ;
67
65
68
- // Swap for debugging in order to draw directly:
69
- // drawClipPath(trace, axisLayer, xa, ya);
70
66
drawClipPath ( trace , t , clipLayer , xa , ya ) ;
71
67
}
72
68
73
69
function drawClipPath ( trace , t , layer , xaxis , yaxis ) {
74
70
var seg , xp , yp , i ;
75
- // var clip = makeg(layer, 'g', 'carpetclip');
76
71
77
72
var clip = layer . select ( '#' + trace . _clipPathId ) ;
78
73
@@ -98,10 +93,6 @@ function drawClipPath(trace, t, layer, xaxis, yaxis) {
98
93
var clipPathData = 'M' + segs . join ( 'L' ) + 'Z' ;
99
94
clip . attr ( 'id' , trace . _clipPathId ) ;
100
95
path . attr ( 'd' , clipPathData ) ;
101
- // .style('stroke-width', 20)
102
- // .style('vector-effect', 'non-scaling-stroke')
103
- // .style('stroke', 'black')
104
- // .style('fill', 'rgba(0, 0, 0, 0.1)');
105
96
}
106
97
107
98
function drawGridLines ( xaxis , yaxis , layer , axis , axisLetter , gridlines ) {
0 commit comments