/** * WordPress dependencies */ const { __ } = wp.i18n; const { Component } = wp.element; const { ColorPalette } = wp.blockEditor || wp.editor; import { isChecked } from '../../utils.js'; const { CheckboxControl, BaseControl, PanelBody, TextControl } = wp.components; class BubbleSettings extends Component { constructor() { super( ...arguments ); } componentDidMount() { } render() { const settings = this.props.chart['visualizer-settings']; return ( { if ( ! settings.bubble ) { settings.bubble = {}; } settings.bubble.opacity = e; this.props.edit( settings ); } } /> { if ( ! settings.bubble ) { settings.bubble = {}; } settings.bubble.stroke = e; this.props.edit( settings ); } } /> { settings.sortBubblesBySize = e; this.props.edit( settings ); } } /> { if ( ! settings.sizeAxis ) { settings.sizeAxis = {}; } settings.sizeAxis.maxValue = e; this.props.edit( settings ); } } /> { if ( ! settings.sizeAxis ) { settings.sizeAxis = {}; } settings.sizeAxis.minValue = e; this.props.edit( settings ); } } /> ); } } export default BubbleSettings;