src/BuilderSettingsMenu.js
/**
   * Function to handle changes to the reaction or metabolite styling.
   * @param {String} value - the style option to be added or removed
   * @param {String} type - reaction_style or metabolite_style
   */
Function to handle changes to the reaction or metabolite styling.
@param {String} value - the style option to be added or removed
@param {String} type - reaction_style or metabolite_style
Function to handle changes to the reaction or metabolite styling . @param { String } value - the style option to be added or removed @param { String } type - reaction_style or metabolite_style
handleStyle (value, type) {
    if (this.props[type].indexOf(value) === -1) {
      this.props.settings.set_conditional(type,
        update(this.props[type], {$push: [value]})
      )
    } else if (this.props[type].indexOf(value) > -1) {
      this.props.settings.set_conditional(type,
        update(this.props[type], {$splice: [[this.props[type].indexOf(value), 1]]})
      )
    }
  }
handleStyle ( value , type ) { if ( this . props [ type ] . indexOf ( value ) === - 1 ) { this . props . settings . set_conditional ( type , update ( this . props [ type ] , { $push : [ value ] } ) ) } else if ( this . props [ type ] . indexOf ( value ) > - 1 ) { this . props . settings . set_conditional ( type , update ( this . props [ type ] , { $splice : [ [ this . props [ type ] . indexOf ( value ) , 1 ] ] } ) ) } }
Function to handle changes to the reaction or metabolite styling.
Function to handle changes to the reaction or metabolite styling .