Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e44d66f

Browse files
committed
schema: add config valObjects to PlotSchema.get() output
1 parent 35ade0f commit e44d66f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/plot_api/plot_schema.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var baseAttributes = require('../plots/attributes');
1616
var baseLayoutAttributes = require('../plots/layout_attributes');
1717
var frameAttributes = require('../plots/frame_attributes');
1818
var animationAttributes = require('../plots/animation_attributes');
19+
var plotConfig = require('./plot_config');
1920

2021
// polar attributes are not part of the Registry yet
2122
var polarAreaAttrs = require('../plots/polar/area_attributes');
@@ -43,7 +44,7 @@ exports.UNDERSCORE_ATTRS = UNDERSCORE_ATTRS;
4344
* - transforms
4445
* - frames
4546
* - animations
46-
* - config (coming soon ...)
47+
* - config
4748
*/
4849
exports.get = function() {
4950
var traces = {};
@@ -70,7 +71,9 @@ exports.get = function() {
7071
transforms: transforms,
7172

7273
frames: formatAttributes(frameAttributes),
73-
animation: formatAttributes(animationAttributes)
74+
animation: formatAttributes(animationAttributes),
75+
76+
config: formatAttributes(plotConfig)
7477
};
7578
};
7679

0 commit comments

Comments
 (0)