Skip to content

Commit 8b88690

Browse files
committed
refactor parcoords - rename dd > e
1 parent c4a7867 commit 8b88690

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/traces/parcoords/parcoords.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -533,18 +533,18 @@ module.exports = function(gd, svg, parcoordsLineLayers, cdModule, layout, callba
533533
d.canvasX = d.x * d.model.canvasPixelRatio;
534534
yAxis
535535
.sort(function(a, b) { return a.x - b.x; })
536-
.each(function(dd, i) {
537-
dd.xIndex = i;
538-
dd.x = d === dd ? dd.x : dd.xScale(dd.xIndex);
539-
dd.canvasX = dd.x * dd.model.canvasPixelRatio;
536+
.each(function(e, i) {
537+
e.xIndex = i;
538+
e.x = d === e ? e.x : e.xScale(e.xIndex);
539+
e.canvasX = e.x * e.model.canvasPixelRatio;
540540
});
541541

542542
updatePanelLayout(yAxis, p);
543543

544-
yAxis.filter(function(dd) { return Math.abs(d.xIndex - dd.xIndex) !== 0; })
544+
yAxis.filter(function(e) { return Math.abs(d.xIndex - e.xIndex) !== 0; })
545545
.attr('transform', function(d) { return 'translate(' + d.xScale(d.xIndex) + ', 0)'; });
546546
d3.select(this).attr('transform', 'translate(' + d.x + ', 0)');
547-
yAxis.each(function(dd, i0, i1) { if(i1 === d.parent.key) p.dimensions[i0] = dd; });
547+
yAxis.each(function(e, i0, i1) { if(i1 === d.parent.key) p.dimensions[i0] = e; });
548548
p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p));
549549
p.focusLayer.render && p.focusLayer.render(p.panels);
550550
})
@@ -561,7 +561,7 @@ module.exports = function(gd, svg, parcoordsLineLayers, cdModule, layout, callba
561561
state.linePickActive(true);
562562

563563
if(callbacks && callbacks.axesMoved) {
564-
callbacks.axesMoved(p.key, p.dimensions.map(function(dd) {return dd.crossfilterDimensionIndex;}));
564+
callbacks.axesMoved(p.key, p.dimensions.map(function(e) {return e.crossfilterDimensionIndex;}));
565565
}
566566
})
567567
);

0 commit comments

Comments
 (0)