@@ -139,7 +139,7 @@ function viewModel(model) {
139
139
viewModel . panels = model . dimensions . filter ( visible ) . map ( function ( dimension , i ) {
140
140
var domainToUnit = domainToUnitScale ( dimension . values ) ;
141
141
return {
142
- key : dimension . id || ( dimension . label + ' ' + Math . floor ( 1e6 * Math . random ( ) ) ) ,
142
+ key : dimension . id || dimension . label ,
143
143
label : dimension . label ,
144
144
integer : dimension . integer ,
145
145
scatter : dimension . scatter ,
@@ -240,29 +240,29 @@ module.exports = function(root, styledData, layout, callbacks) {
240
240
} ) ;
241
241
} , keyFun ) ;
242
242
243
+ var tweakables = { renderers : [ ] , dimensions : [ ] } ;
244
+
243
245
parcoordsLineLayer . enter ( )
244
246
. append ( 'canvas' )
245
247
. classed ( 'parcoordsLineLayer' , true )
246
248
. style ( 'transform' , 'translate(' + ( - overdrag ) + 'px, 0)' )
247
249
. style ( 'float' , 'left' )
248
250
. style ( 'clear' , 'both' )
249
- . style ( 'position' , function ( d , i ) { return i > 0 ? 'absolute' : 'static' ; } )
250
251
. style ( 'left' , 0 )
251
- . style ( 'padding' , function ( d ) { return d . viewModel . model . padding + 'px' ; } )
252
252
. style ( 'overflow' , 'visible' )
253
+ . style ( 'position' , function ( d , i ) { return i > 0 ? 'absolute' : 'static' ; } ) ;
254
+
255
+ parcoordsLineLayer
256
+ . style ( 'padding' , function ( d ) { return d . viewModel . model . padding + 'px' ; } )
253
257
. attr ( 'width' , function ( d ) { return d . viewModel . model . canvasWidth ; } )
254
258
. attr ( 'height' , function ( d ) { return d . viewModel . model . canvasHeight ; } )
255
259
. style ( 'width' , function ( d ) { return ( d . viewModel . model . width + 2 * overdrag ) + 'px' ; } )
256
- . style ( 'height' , function ( d ) { return d . viewModel . model . height + 'px' ; } ) ;
257
-
258
- var tweakables = { renderers : [ ] , dimensions : [ ] } ;
259
-
260
- parcoordsLineLayer
260
+ . style ( 'height' , function ( d ) { return d . viewModel . model . height + 'px' ; } )
261
261
. each ( function ( d ) {
262
- var lineLayer = lineLayerMaker ( this , d . model . lines , d . model . canvasWidth , d . model . canvasHeight , d . viewModel . panels , d . model . unitToColor , d . context ) ;
263
- d . viewModel [ d . key ] = lineLayer ;
264
- tweakables . renderers . push ( function ( ) { lineLayer . render ( d . viewModel . panels , true ) ; } ) ;
265
- lineLayer . render ( d . viewModel . panels , ! d . context , d . context && ! someFiltersActive ( d . viewModel ) ) ;
262
+ d . lineLayer = lineLayerMaker ( this , d . model . lines , d . model . canvasWidth , d . model . canvasHeight , d . viewModel . panels , d . model . unitToColor , d . context ) ;
263
+ d . viewModel [ d . key ] = d . lineLayer ;
264
+ tweakables . renderers . push ( function ( ) { d . lineLayer . render ( d . viewModel . panels , true ) ; } ) ;
265
+ d . lineLayer . render ( d . viewModel . panels , ! d . context , d . context && ! someFiltersActive ( d . viewModel ) ) ;
266
266
} ) ;
267
267
268
268
var parcoordsControlOverlay = parcoordsViewModel . selectAll ( '.parcoordsControlOverlay' )
@@ -475,7 +475,7 @@ module.exports = function(root, styledData, layout, callbacks) {
475
475
. append ( 'g' )
476
476
. classed ( 'axisBrush' , true ) ;
477
477
478
- axisBrushEnter
478
+ axisBrush
479
479
. each ( function ( d ) {
480
480
if ( ! d . brush ) {
481
481
d . brush = d3 . svg . brush ( )
0 commit comments