7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-22 17:43:44 +00:00

mapped xdoman/ydomain to graph redux

This commit is contained in:
Jason Bonnell 2021-03-21 15:44:50 -04:00
parent ff98295b97
commit 099ae0dcd4
2 changed files with 5 additions and 2 deletions
Software/waveview/src
components/graph
redux/initialStates

View File

@ -69,8 +69,9 @@ class Graph extends React.Component<any, any> {
}
}
function mapStateToProps(state: { settings: any }) {
function mapStateToProps(state: { graph: any, settings: any }) {
return {
graph: state.graph,
settings: state.settings
};
}

View File

@ -1,7 +1,9 @@
import GraphStatus from "../../configuration/enums/graphStatus";
const GraphInitialState = {
currentStatus: GraphStatus.On
currentStatus: GraphStatus.On,
xDomain: [0,0],
yDomain: [0,0]
};
export default GraphInitialState;