move colorScale and colorAccessor to redux to make it global

This commit is contained in:
Colin Megill
2017-11-17 14:59:28 -08:00
parent e18f57e6f2
commit 42bef3d6cd
7 changed files with 61 additions and 39 deletions
+4 -2
View File
@@ -16,7 +16,8 @@ import ColorControl from "../controls/color";
ranges,
vertices,
metadata,
color: state.controls.color,
colorAccessor: state.controls.colorAccessor,
colorScale: state.controls.colorScale,
continuousSelection: state.controls.continuousSelection,
graphBrushSelection: state.controls.graphBrushSelection
}
@@ -81,11 +82,12 @@ class Graph extends React.Component {
nextProps.vertices,
this.state.ctx,
nextProps.expressionsCountsMap,
nextProps.color,
nextProps.colorAccessor,
nextProps.ranges, /* assumption that this exists if vertices does both are on cells */
nextProps.metadata,
nextProps.continuousSelection, /* continuousSelected should probably inform a global 'is active' array rather than be consumed so specifically here */
nextProps.graphBrushSelection,
nextProps.colorScale,
)
}
}