Skip to content

Commit 75dc282

Browse files
committed
Change fields used by module registry
1 parent 823ae72 commit 75dc282

File tree

15 files changed

+60
-45
lines changed

15 files changed

+60
-45
lines changed

src/traces/bar/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ Bar.plot = require('./plot');
2323
Bar.style = require('./style');
2424
Bar.hoverPoints = require('./hover');
2525

26-
Bar._categories = ['cartesian', 'bar', 'oriented', 'markerColorscale', 'errorBarsOK', 'showLegend'];
27-
Bar._type = 'bar';
28-
Bar._meta = {
26+
Bar.moduleType = 'trace';
27+
Bar.name = 'bar';
28+
Bar.categories = ['cartesian', 'bar', 'oriented', 'markerColorscale', 'errorBarsOK', 'showLegend'];
29+
Bar.meta = {
2930
description: [
3031
'The data visualized by the span of the bars is set in `y`',
3132
'if `orientation` is set th *v* (the default)',

src/traces/box/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ Box.plot = require('./plot');
2020
Box.style = require('./style');
2121
Box.hoverPoints = require('./hover');
2222

23-
Box._type = 'box';
24-
Box._categories = ['cartesian', 'symbols', 'oriented', 'box', 'showLegend'];
25-
Box._meta = {
23+
Box.moduleType = 'trace';
24+
Box.name = 'box';
25+
Box.categories = ['cartesian', 'symbols', 'oriented', 'box', 'showLegend'];
26+
Box.meta = {
2627
description: [
2728
'In vertical (horizontal) box plots,',
2829
'statistics are computed using `y` (`x`) values.',

src/traces/choropleth/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ Choropleth.colorbar = require('../heatmap/colorbar');
1717
Choropleth.calc = require('../surface/calc');
1818
Choropleth.plot = require('./plot').plot;
1919

20-
Choropleth._type = 'choropleth';
21-
Choropleth._categories = ['geo', 'noOpacity'];
22-
Choropleth._meta = {
20+
Choropleth.moduleType = 'trace';
21+
Choropleth.name = 'choropleth';
22+
Choropleth.categories = ['geo', 'noOpacity'];
23+
Choropleth.meta = {
2324
description: [
2425
'The data that describes the choropleth value-to-color mapping',
2526
'is set in `z`.',

src/traces/contour/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Contour.style = require('./style');
1919
Contour.colorbar = require('./colorbar');
2020
Contour.hoverPoints = require('./hover');
2121

22-
Contour._type = 'contour';
23-
Contour._categories = ['cartesian', '2dMap', 'contour'];
24-
Contour._meta = {
22+
Contour.moduleType = 'trace';
23+
Contour.name = 'contour';
24+
Contour.categories = ['cartesian', '2dMap', 'contour'];
25+
Contour.meta = {
2526
description: [
2627
'The data from which contour lines are computed is set in `z`.',
2728
'Data in `z` must be a {2D array} of numbers.',

src/traces/heatmap/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Heatmap.colorbar = require('./colorbar');
1919
Heatmap.style = require('./style');
2020
Heatmap.hoverPoints = require('./hover');
2121

22-
Heatmap._type = 'heatmap';
23-
Heatmap._categories = ['cartesian', '2dMap'];
24-
Heatmap._meta = {
22+
Heatmap.moduleType = 'trace';
23+
Heatmap.name = 'heatmap';
24+
Heatmap.categories = ['cartesian', '2dMap'];
25+
Heatmap.meta = {
2526
description: [
2627
'The data that describes the heatmap value-to-color mapping',
2728
'is set in `z`.',

src/traces/histogram/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ Histogram.style = require('../bar/style');
3636
Histogram.colorbar = require('../scatter/colorbar');
3737
Histogram.hoverPoints = require('../bar/hover');
3838

39-
Histogram._type = 'histogram';
40-
Histogram._categories = ['cartesian', 'bar', 'histogram', 'oriented', 'errorBarsOK', 'showLegend'];
41-
Histogram._meta = {
39+
Histogram.moduleType = 'trace';
40+
Histogram.name = 'histogram';
41+
Histogram.categories = ['cartesian', 'bar', 'histogram', 'oriented', 'errorBarsOK', 'showLegend'];
42+
Histogram.meta = {
4243
description: [
4344
'The sample data from which statistics are computed is set in `x`',
4445
'for vertically spanning histograms and',

src/traces/histogram2d/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Histogram2D.colorbar = require('../heatmap/colorbar');
1919
Histogram2D.style = require('../heatmap/style');
2020
Histogram2D.hoverPoints = require('../heatmap/hover');
2121

22-
Histogram2D._type = 'histogram2d';
23-
Histogram2D._categories = ['cartesian', '2dMap', 'histogram'];
24-
Histogram2D._meta = {
22+
Histogram2D.moduleType = 'trace';
23+
Histogram2D.name = 'histogram2d';
24+
Histogram2D.categories = ['cartesian', '2dMap', 'histogram'];
25+
Histogram2D.meta = {
2526
hrName: 'histogram_2d',
2627
description: [
2728
'The sample data from which statistics are computed is set in `x`',

src/traces/histogram2dcontour/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Histogram2dContour.style = require('../contour/style');
1919
Histogram2dContour.colorbar = require('../contour/colorbar');
2020
Histogram2dContour.hoverPoints = require('../contour/hover');
2121

22-
Histogram2dContour._type = 'histogram2dcontour';
23-
Histogram2dContour._categories = ['cartesian', '2dMap', 'contour', 'histogram'];
24-
Histogram2dContour._meta = {
22+
Histogram2dContour.moduleType = 'trace';
23+
Histogram2dContour.name = 'histogram2dcontour';
24+
Histogram2dContour.categories = ['cartesian', '2dMap', 'contour', 'histogram'];
25+
Histogram2dContour.meta = {
2526
hrName: 'histogram_2d_contour',
2627
description: [
2728
'The sample data from which statistics are computed is set in `x`',

src/traces/mesh3d/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ Mesh3D.supplyDefaults = require('./defaults');
1616
Mesh3D.colorbar = require('../heatmap/colorbar');
1717
Mesh3D.plot = require('./convert');
1818

19-
Mesh3D._type = 'mesh3d',
20-
Mesh3D._categories = ['gl3d'];
21-
Mesh3D._meta = {
19+
Mesh3D.moduleType = 'trace';
20+
Mesh3D.name = 'mesh3d',
21+
Mesh3D.categories = ['gl3d'];
22+
Mesh3D.meta = {
2223
description: [
2324
'Draws sets of triangles with coordinates given by',
2425
'three 1-dimensional arrays in `x`, `y`, `z` and',

src/traces/pie/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Pie.plot = require('./plot');
1919
Pie.style = require('./style');
2020
Pie.styleOne = require('./style_one');
2121

22-
Pie._type = 'pie';
23-
Pie._categories = ['pie', 'showLegend'];
24-
Pie._meta = {
22+
Pie.moduleType = 'trace';
23+
Pie.name = 'pie';
24+
Pie.categories = ['pie', 'showLegend'];
25+
Pie.meta = {
2526
description: [
2627
'A data visualized by the sectors of the pie is set in `values`.',
2728
'The sector labels are set in `labels`.',

src/traces/scatter/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ scatter.isBubble = subtypes.isBubble;
3333

3434
scatter.selectPoints = require('./select');
3535

36-
scatter._type = 'scatter';
37-
scatter._categories = ['cartesian', 'symbols', 'markerColorscale', 'errorBarsOK', 'showLegend'];
38-
scatter._meta = {
36+
scatter.moduleType = 'trace';
37+
scatter.name = 'scatter';
38+
scatter.categories = ['cartesian', 'symbols', 'markerColorscale', 'errorBarsOK', 'showLegend'];
39+
scatter.meta = {
3940
description: [
4041
'The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.',
4142
'The data visualized as scatter point or lines is set in `x` and `y`.',

src/traces/scatter3d/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ Scatter3D.calc = function(gd, trace) {
3030
return cd;
3131
};
3232

33-
Scatter3D._type = 'scatter3d';
34-
Scatter3D._categories = ['gl3d', 'symbols', 'markerColorscale', 'showLegend'];
35-
Scatter3D._meta = {
33+
Scatter3D.moduleType = 'trace';
34+
Scatter3D.name = 'scatter3d';
35+
Scatter3D.categories = ['gl3d', 'symbols', 'markerColorscale', 'showLegend'];
36+
Scatter3D.meta = {
3637
hrName: 'scatter_3d',
3738
description: [
3839
'The data visualized as scatter point or lines in 3D dimension',

src/traces/scattergeo/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ ScatterGeo.calc = function(gd, trace) {
2424

2525
};
2626

27-
ScatterGeo._type = 'scattergeo';
28-
ScatterGeo._categories = ['geo', 'symbols', 'markerColorscale', 'showLegend'];
29-
ScatterGeo._meta = {
27+
ScatterGeo.moduleType = 'trace';
28+
ScatterGeo.name = 'scattergeo';
29+
ScatterGeo.categories = ['geo', 'symbols', 'markerColorscale', 'showLegend'];
30+
ScatterGeo.meta = {
3031
hrName: 'scatter_geo',
3132
description: [
3233
'The data visualized as scatter point or lines on a geographic map',

src/traces/scattergl/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ ScatterGl.colorbar = Scatter.colorbar;
2121
ScatterGl.calc = Scatter3D.calc;
2222
ScatterGl.plot = require('./convert');
2323

24-
ScatterGl._type = 'scattergl';
25-
ScatterGl._categories = ['gl2d', 'symbols', 'errorBarsOK', 'markerColorscale', 'showLegend'];
26-
ScatterGl._meta = {
24+
ScatterGl.moduleType = 'trace';
25+
ScatterGl.name = 'scattergl';
26+
ScatterGl.categories = ['gl2d', 'symbols', 'errorBarsOK', 'markerColorscale', 'showLegend'];
27+
ScatterGl.meta = {
2728
description: [
2829
'The data visualized as scatter point or lines is set in `x` and `y`',
2930
'using the WebGl plotting engine.',

src/traces/surface/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ Surface.colorbar = require('../heatmap/colorbar');
1717
Surface.calc = require('./calc');
1818
Surface.plot = require('./convert');
1919

20-
Surface._type = 'surface';
21-
Surface._categories = ['gl3d', 'noOpacity'];
22-
Surface._meta = {
20+
Surface.moduleType = 'trace';
21+
Surface.name = 'surface';
22+
Surface.categories = ['gl3d', 'noOpacity'];
23+
Surface.meta = {
2324
description: [
2425
'The data the describes the coordinates of the surface is set in `z`.',
2526
'Data in `z` should be a {2D array}.',

0 commit comments

Comments
 (0)