|
1 | 1 | import DefaultEditor from './DefaultEditor';
|
2 | 2 | import PropTypes from 'prop-types';
|
3 | 3 | import React, {Component} from 'react';
|
4 |
| -import {bem, localizeString, plotlyTraceToCustomTrace, traceTypeToPlotlyInitFigure} from './lib'; |
| 4 | +import { |
| 5 | + bem, |
| 6 | + localizeString, |
| 7 | + plotlyTraceToCustomTrace, |
| 8 | + traceTypeToPlotlyInitFigure, |
| 9 | + hasValidCustomConfigVisibilityRules, |
| 10 | +} from './lib'; |
5 | 11 | import {
|
6 | 12 | shamefullyClearAxisTypes,
|
7 | 13 | shamefullyAdjustAxisRef,
|
@@ -60,6 +66,9 @@ class EditorControls extends Component {
|
60 | 66 | fontOptions: this.props.fontOptions,
|
61 | 67 | chartHelp: this.props.chartHelp,
|
62 | 68 | customConfig: this.props.customConfig,
|
| 69 | + hasValidCustomConfigVisibilityRules: hasValidCustomConfigVisibilityRules( |
| 70 | + this.props.customConfig |
| 71 | + ), |
63 | 72 | };
|
64 | 73 | }
|
65 | 74 |
|
@@ -435,6 +444,7 @@ EditorControls.childContextTypes = {
|
435 | 444 | fontOptions: PropTypes.array,
|
436 | 445 | chartHelp: PropTypes.object,
|
437 | 446 | customConfig: PropTypes.object,
|
| 447 | + hasValidCustomConfigVisibilityRules: PropTypes.bool, |
438 | 448 | };
|
439 | 449 |
|
440 | 450 | export default EditorControls;
|
0 commit comments