File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -36,23 +36,10 @@ exports.defaultConfig = require('./plot_api/plot_config');
36
36
// plots
37
37
var Plots = exports . Plots = require ( './plots/plots' ) ;
38
38
39
- var Cartesian = require ( './plots/cartesian' ) ;
40
- Plots . registerSubplot ( Cartesian ) ;
41
-
42
- var Geo = require ( './plots/geo' ) ;
43
- Plots . registerSubplot ( Geo ) ;
44
-
45
- var Gl3d = require ( './plots/gl3d' ) ;
46
- Plots . registerSubplot ( Gl3d ) ;
47
-
48
- var Gl2d = require ( './plots/gl2d' ) ;
49
- Plots . registerSubplot ( Gl2d ) ;
50
-
51
39
exports . Axes = require ( './plots/cartesian/axes' ) ;
52
40
exports . Fx = require ( './plots/cartesian/graph_interact' ) ;
53
41
exports . micropolar = require ( './plots/polar/micropolar' ) ;
54
42
55
-
56
43
// components
57
44
exports . Color = require ( './components/color' ) ;
58
45
exports . Drawing = require ( './components/drawing' ) ;
@@ -80,6 +67,10 @@ exports.register = function register(_modules) {
80
67
throw new Error ( 'Invalid module was attempted to be registered!' ) ;
81
68
} else {
82
69
Plots . register ( newModule , newModule . name , newModule . categories , newModule . meta ) ;
70
+
71
+ if ( ! Plots . subplotsRegistry [ newModule . basePlotModule . name ] ) {
72
+ Plots . registerSubplot ( newModule . basePlotModule ) ;
73
+ }
83
74
}
84
75
}
85
76
} ;
You can’t perform that action at this time.
0 commit comments