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:
parent
ff98295b97
commit
099ae0dcd4
Software/waveview/src
@ -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
|
||||
};
|
||||
}
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user