@@ -15,6 +15,7 @@ import isNumeric from 'fast-isnumeric';
1515import nestedProperty from 'plotly.js/src/lib/nested_property' ;
1616import { categoryLayout , traceTypes } from 'lib/traceTypes' ;
1717import { ModalProvider } from 'components/containers' ;
18+ import { DEFAULT_FONTS } from 'lib/constants' ;
1819
1920class EditorControls extends Component {
2021 constructor ( props , context ) {
@@ -55,6 +56,7 @@ class EditorControls extends Component {
5556 showFieldTooltips : this . props . showFieldTooltips ,
5657 glByDefault : this . props . glByDefault ,
5758 mapBoxAccess : this . props . mapBoxAccess ,
59+ fontOptions : this . props . fontOptions ,
5860 } ;
5961 }
6062
@@ -344,6 +346,7 @@ EditorControls.propTypes = {
344346 makeDefaultTrace : PropTypes . func ,
345347 glByDefault : PropTypes . bool ,
346348 mapBoxAccess : PropTypes . bool ,
349+ fontOptions : PropTypes . array ,
347350} ;
348351
349352EditorControls . defaultProps = {
@@ -354,6 +357,7 @@ EditorControls.defaultProps = {
354357 traces : _ => traceTypes ( _ ) ,
355358 complex : true ,
356359 } ,
360+ fontOptions : DEFAULT_FONTS ,
357361} ;
358362
359363EditorControls . childContextTypes = {
@@ -383,6 +387,7 @@ EditorControls.childContextTypes = {
383387 showFieldTooltips : PropTypes . bool ,
384388 glByDefault : PropTypes . bool ,
385389 mapBoxAccess : PropTypes . bool ,
390+ fontOptions : PropTypes . array ,
386391} ;
387392
388393export default EditorControls ;
0 commit comments