@@ -96,27 +96,25 @@ function model(layout, d) {
96
96
var brushVisibleWidth = d . filterbar . width ;
97
97
var brushCaptureWidth = d . filterbar . capturewidth || Math . min ( 32 , brushVisibleWidth + 16 ) ;
98
98
99
- return [
100
- {
101
- key : Math . random ( ) ,
102
- dimensions : data ,
103
- tickDistance : d . tickdistance ,
104
- unitToColor : d . unitToColor ,
105
- lines : lines ,
106
- translateX : translateX ,
107
- translateY : translateY ,
108
- padding : padding ,
109
- canvasWidth : canvasWidth ,
110
- canvasHeight : canvasHeight ,
111
- width : width ,
112
- height : height ,
113
- brushVisibleWidth : brushVisibleWidth ,
114
- brushCaptureWidth : brushCaptureWidth ,
115
- resizeHeight : resizeHeight ,
116
- canvasPixelRatio : canvasPixelRatio ,
117
- filterBar : d . filterbar
118
- }
119
- ] ;
99
+ return {
100
+ key : Math . random ( ) ,
101
+ dimensions : data ,
102
+ tickDistance : d . tickdistance ,
103
+ unitToColor : d . unitToColor ,
104
+ lines : lines ,
105
+ translateX : translateX ,
106
+ translateY : translateY ,
107
+ padding : padding ,
108
+ canvasWidth : canvasWidth ,
109
+ canvasHeight : canvasHeight ,
110
+ width : width ,
111
+ height : height ,
112
+ brushVisibleWidth : brushVisibleWidth ,
113
+ brushCaptureWidth : brushCaptureWidth ,
114
+ resizeHeight : resizeHeight ,
115
+ canvasPixelRatio : canvasPixelRatio ,
116
+ filterBar : d . filterbar
117
+ } ;
120
118
}
121
119
122
120
function viewModel ( model ) {
@@ -215,7 +213,7 @@ module.exports = function(root, styledData, layout, callbacks) {
215
213
}
216
214
217
215
var parcoordsModel = d3 . select ( root ) . selectAll ( '.parcoordsModel' )
218
- . data ( model ( layout , styledData ) , keyFun ) ;
216
+ . data ( [ model ( layout , styledData ) ] , keyFun ) ;
219
217
220
218
parcoordsModel . enter ( )
221
219
. append ( 'div' )
0 commit comments