Plato on Github
Report Home
src/components/Instrument/InstrumentWidget.js
Maintainability
89.24
Lines of code
33
Difficulty
9.31
Estimated Errors
0.14
Function weight
By Complexity
By SLOC
import React from 'react'; import InstrumentMonochromatorWidget from './InstrumentMonochromatorWidget.js'; import InstrumentDetectorWidget from './InstrumentDetectorWidget.js'; import InstrumentSlitWidget from './InstrumentSlitWidget.js'; import InstrumentOpticsWidget from './InstrumentOpticsWidget.js'; import InstrumentPositionersWidget from './InstrumentPositionersWidget.js'; import { getDatasetParameterByName, getDatasetParameterByPrefixName } from '../../helpers/DatasetHelper.js'; class InstrumentWidget extends React.Component { constructor(props) { super(props); } componentDidMount() { } render() { return <div style={{fontSize:'11px'}}> <InstrumentMonochromatorWidget dataset={this.props.dataset}></InstrumentMonochromatorWidget> <InstrumentDetectorWidget dataset={this.props.dataset}></InstrumentDetectorWidget> <InstrumentSlitWidget dataset={this.props.dataset}></InstrumentSlitWidget> <InstrumentOpticsWidget dataset={this.props.dataset}></InstrumentOpticsWidget> <InstrumentPositionersWidget dataset={this.props.dataset}></InstrumentPositionersWidget> </div>; } } export default InstrumentWidget;