File tree 2 files changed +10
-2
lines changed
test/jasmine/bundle_tests
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ var baseAttributes = require('../plots/attributes');
16
16
var baseLayoutAttributes = require ( '../plots/layout_attributes' ) ;
17
17
var frameAttributes = require ( '../plots/frame_attributes' ) ;
18
18
var animationAttributes = require ( '../plots/animation_attributes' ) ;
19
+ var configAttributes = require ( './plot_config' ) . configAttributes ;
19
20
20
21
// polar attributes are not part of the Registry yet
21
22
var polarAreaAttrs = require ( '../plots/polar/legacy/area_attributes' ) ;
@@ -47,7 +48,7 @@ exports.UNDERSCORE_ATTRS = UNDERSCORE_ATTRS;
47
48
* - transforms
48
49
* - frames
49
50
* - animations
50
- * - config (coming soon ...)
51
+ * - config
51
52
*/
52
53
exports . get = function ( ) {
53
54
var traces = { } ;
@@ -96,7 +97,9 @@ exports.get = function() {
96
97
transforms : transforms ,
97
98
98
99
frames : getFramesAttributes ( ) ,
99
- animation : formatAttributes ( animationAttributes )
100
+ animation : formatAttributes ( animationAttributes ) ,
101
+
102
+ config : formatAttributes ( configAttributes )
100
103
} ;
101
104
} ;
102
105
Original file line number Diff line number Diff line change @@ -328,6 +328,11 @@ describe('plot schema', function() {
328
328
expect ( plotSchema . frames . items . frames_entry . role ) . toEqual ( 'object' ) ;
329
329
} ) ;
330
330
331
+ it ( 'should list config attributes' , function ( ) {
332
+ expect ( plotSchema . config ) . toBeDefined ( ) ;
333
+ expect ( plotSchema . config . scrollZoom ) . toBeDefined ( ) ;
334
+ } ) ;
335
+
331
336
it ( 'should list trace-dependent & direction-dependent error bar attributes' , function ( ) {
332
337
var scatterSchema = plotSchema . traces . scatter . attributes ;
333
338
expect ( scatterSchema . error_x . copy_ystyle ) . toBeDefined ( ) ;
You can’t perform that action at this time.
0 commit comments