/** * WordPress dependencies */ const { __ } = wp.i18n; const { Component } = wp.element; const { ColorPalette } = wp.editor; const { BaseControl, PanelBody, SelectControl, TextControl } = wp.components; class CandlesSettings extends Component { constructor() { super( ...arguments ); } render() { const settings = this.props.chart['visualizer-settings']; return ( { settings.focusTarget = e; this.props.edit( settings ); } } /> { settings.selectionMode = e; this.props.edit( settings ); } } /> { settings.aggregationTarget = e; this.props.edit( settings ); } } /> { settings.candlestick.fallingColor.strokeWidth = e; this.props.edit( settings ); } } /> { settings.candlestick.fallingColor.stroke = e; this.props.edit( settings ); } } /> { settings.candlestick.fallingColor.fill = e; this.props.edit( settings ); } } /> { settings.candlestick.risingColor.strokeWidth = e; this.props.edit( settings ); } } /> { settings.candlestick.risingColor.stroke = e; this.props.edit( settings ); } } /> { settings.candlestick.risingColor.fill = e; this.props.edit( settings ); } } /> ); } } export default CandlesSettings;