File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ module.exports = function register(_modules) {
36
36
registerTransformModule ( newModule ) ;
37
37
break ;
38
38
39
+ case 'component' :
40
+ registerComponentModule ( newModule ) ;
41
+ break ;
42
+
39
43
default :
40
44
throw new Error ( 'Invalid module was attempted to be registered!' ) ;
41
45
}
@@ -69,3 +73,7 @@ function registerTransformModule(newModule) {
69
73
70
74
Registry . transformsRegistry [ newModule . name ] = newModule ;
71
75
}
76
+
77
+ function registerComponentModule ( newModule ) {
78
+ Registry . componentsRegistry [ newModule . name ] = newModule ;
79
+ }
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ exports.allTypes = [];
17
17
exports . allCategories = { } ;
18
18
exports . subplotsRegistry = { } ;
19
19
exports . transformsRegistry = { } ;
20
+ exports . componentsRegistry = { } ;
20
21
21
22
/**
22
23
* register a module as the handler for a trace type
You can’t perform that action at this time.
0 commit comments