File tree 3 files changed +15
-13
lines changed
3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,10 @@ function getModule(arg) {
258
258
_module = arg . _module ;
259
259
260
260
if ( subplotsRegistry [ _module ] ) return subplotsRegistry [ _module ] ;
261
- else if ( 'module' in arg ) return Plotly [ _module ] ;
261
+ else if ( componentsRegistry [ _module ] ) return componentsRegistry [ _module ] ;
262
+
263
+ // look it internal Plotly if all previous attempts fail
264
+ return Plotly [ _module ] ;
262
265
}
263
266
264
267
function removeUnderscoreAttrs ( attributes ) {
Original file line number Diff line number Diff line change 11
11
var fontAttrs = require ( '../font_attributes' ) ;
12
12
var colorAttrs = require ( '../../components/color/attributes' ) ;
13
13
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
14
- var rangeSliderAttrs = require ( '../../components/rangeslider/attributes' ) ;
15
- var rangeSelectorAttrs = require ( '../../components/rangeselector/attributes' ) ;
16
14
17
15
var constants = require ( './constants' ) ;
18
16
@@ -97,9 +95,6 @@ module.exports = {
97
95
] . join ( ' ' )
98
96
} ,
99
97
100
- rangeslider : rangeSliderAttrs ,
101
- rangeselector : rangeSelectorAttrs ,
102
-
103
98
fixedrange : {
104
99
valType : 'boolean' ,
105
100
dflt : false ,
@@ -498,6 +493,10 @@ module.exports = {
498
493
] . join ( ' ' )
499
494
} ,
500
495
496
+ _nestedModules : {
497
+ 'rangeslider' : 'rangeslider' ,
498
+ 'rangeselector' : 'rangeselector' ,
499
+ } ,
501
500
502
501
_deprecated : {
503
502
autotick : {
Original file line number Diff line number Diff line change @@ -171,18 +171,18 @@ module.exports = {
171
171
'*' : 'Fx'
172
172
} ,
173
173
174
- // TODO merge with moduleLayoutDefaults in plots.js
175
174
_nestedModules : {
176
175
'xaxis' : 'Axes' ,
177
176
'yaxis' : 'Axes' ,
178
177
'scene' : 'gl3d' ,
179
178
'geo' : 'geo' ,
180
- 'legend' : 'Legend' ,
181
- 'annotations' : 'Annotations' ,
182
- 'shapes' : 'Shapes' ,
183
- 'images' : 'Images' ,
184
- 'updatemenus' : 'UpdateMenus' ,
185
179
'ternary' : 'ternary' ,
186
- 'mapbox' : 'mapbox'
180
+ 'mapbox' : 'mapbox' ,
181
+
182
+ 'legend' : 'legend' ,
183
+ 'annotations' : 'annotations' ,
184
+ 'shapes' : 'shapes' ,
185
+ 'images' : 'images' ,
186
+ 'updatemenus' : 'updatemenus'
187
187
}
188
188
} ;
You can’t perform that action at this time.
0 commit comments