Skip to content

Commit 55e203a

Browse files
committed
mv plots/plots/* to plots/* :
- folders in plots/ are reserved for plot types
1 parent d3087b1 commit 55e203a

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

src/plotly.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exports.MathJaxConfig = require('./fonts/mathjax_config');
1212
exports.defaultConfig = require('./plot_config');
1313

1414
// plots
15-
exports.Plots = require('./plots/plots/plots');
15+
exports.Plots = require('./plots/plots');
1616
exports.Axes = require('./plots/cartesian/axes');
1717
exports.Fx = require('./plots/cartesian/graph_interact');
1818
exports.Scene = require('./plots/gl3d/scene');
File renamed without changes.
File renamed without changes.

src/plots/plots/layout_attributes.js renamed to src/plots/layout_attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
var Plotly = require('../../plotly');
1+
var Plotly = require('../plotly');
22

33
var fontAttrs = require('./font_attributes');
4-
var colorAttrs = require('../../components/color/attributes');
4+
var colorAttrs = require('../components/color/attributes');
55

66
var extendFlat = Plotly.Lib.extendFlat;
77

src/plots/plots/plots.js renamed to src/plots/plots.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var Plotly = require('../../plotly');
3+
var Plotly = require('../plotly');
44
var d3 = require('d3');
55
var isNumeric = require('fast-isnumeric');
66

@@ -703,14 +703,11 @@ plots.purge = function(gd) {
703703
};
704704

705705
plots.style = function(gd) {
706-
var modulesWithErrorBars = Plotly.ErrorBars ?
707-
gd._modules.concat(Plotly.ErrorBars) : gd._modules,
708-
i,
709-
module;
706+
var modulesWithErrorBars = gd._modules.concat(Plotly.ErrorBars);
710707

711-
for (i = 0; i < modulesWithErrorBars.length; i++) {
712-
module = modulesWithErrorBars[i];
713-
if (module.style) module.style(gd);
708+
for(var i = 0; i < modulesWithErrorBars.length; i++) {
709+
var _module = modulesWithErrorBars[i];
710+
if(_module.style) _module.style(gd);
714711
}
715712
};
716713

src/plots/polar/axis_attributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var axesAttrs = require('../cartesian/attributes');
3+
var axesAttrs = require('../cartesian/layout_attributes');
44
var extendFlat = require('../../lib/extend').extendFlat;
55

66
var domainAttr = extendFlat({}, axesAttrs.domain, {

0 commit comments

Comments
 (0)