ES6 Plato on Github
Report Home
Summary Display
components/Instrument/InstrumentWidget.js
Maintainability
89.04
Lines of code
35
Difficulty
9.36
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;