PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.3.3
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.3.3
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
visualizer / classes / Visualizer / Gutenberg / src / Components / Sidebar / MagnifyingGlass.js

MagnifyingGlass.js in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.3.3, at classes/Visualizer/Gutenberg/src/Components/Sidebar/MagnifyingGlass.js

60 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 const { __ } = wp.i18n;
5
6 const { Component } = wp.element;
7
8 const {
9 PanelBody,
10 SelectControl,
11 TextControl
12 } = wp.components;
13
14 class MagnifyingGlass extends Component {
15 constructor() {
16 super( ...arguments );
17 }
18
19 render() {
20
21 const settings = this.props.chart['visualizer-settings'];
22
23 return (
24 <PanelBody
25 title={ __( 'Magnifying Glass' ) }
26 initialOpen={ false }
27 className="visualizer-advanced-panel"
28 >
29
30 <SelectControl
31 label={ __( 'Enabled' ) }
32 help={ __( 'If yes, when the user lingers over a cluttered marker, a magnifiying glass will be opened.' ) }
33 value={ settings.magnifyingGlass.enable ? settings.magnifyingGlass.enable : '1' }
34 options={ [
35 { label: __( 'Yes' ), value: '1' },
36 { label: __( 'No' ), value: '0' }
37 ] }
38 onChange={ e => {
39 settings.magnifyingGlass.enable = e;
40 this.props.edit( settings );
41 } }
42 />
43
44 <TextControl
45 label={ __( 'Zoom Factor' ) }
46 help={ __( 'The zoom factor of the magnifying glass. Can be any number greater than 0.' ) }
47 value={ settings.magnifyingGlass.zoomFactor }
48 onChange={ e => {
49 settings.magnifyingGlass.zoomFactor = e;
50 this.props.edit( settings );
51 } }
52 />
53
54 </PanelBody>
55 );
56 }
57 }
58
59 export default MagnifyingGlass;
60