Skip to content

Commit f91ebbf

Browse files
committed
schema: add frame and animation attributes
1 parent 1c6b292 commit f91ebbf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/plot_api/plot_schema.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ var Lib = require('../lib');
1414

1515
var baseAttributes = require('../plots/attributes');
1616
var baseLayoutAttributes = require('../plots/layout_attributes');
17+
var frameAttributes = require('../plots/frame_attributes');
18+
var animationAttributes = require('../plots/animation_attributes');
1719

1820
// polar attributes are not part of the Registry yet
1921
var polarAreaAttrs = require('../plots/polar/area_attributes');
@@ -39,6 +41,9 @@ exports.UNDERSCORE_ATTRS = UNDERSCORE_ATTRS;
3941
* - traces
4042
* - layout
4143
* - transforms
44+
* - frames
45+
* - animations
46+
* - config (coming soon ...)
4247
*/
4348
exports.get = function() {
4449
var traces = {};
@@ -64,6 +69,10 @@ exports.get = function() {
6469

6570
transforms: transforms,
6671

72+
frames: formatAttributes(frameAttributes),
73+
animation: formatAttributes(animationAttributes)
74+
};
75+
};
6776

6877
/**
6978
* Crawl the attribute tree, recursively calling a callback function

0 commit comments

Comments
 (0)