Skip to content

Commit 942e49e

Browse files
committed
put plot-type-specific lib functions in lib/
1 parent 97cb7bb commit 942e49e

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed
File renamed without changes.

src/geo/lib/location-utils.js renamed to src/lib/geo_location_utils.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
var locationUtils = module.exports = {};
44

5-
var Plotly = require('../../plotly'),
6-
// an hash object iso3 to regex string
7-
countryNameData = require('../raw/country-name_to_iso3.json');
5+
var Plotly = require('../plotly');
6+
7+
// an hash object iso3 to regex string
8+
var countryNameData = require('../constants/country-name_to_iso3.json');
89

910
// make list of all country iso3 ids from at runtime
1011
var countryIds = Object.keys(countryNameData);

src/gl3d/lib/format-color.js renamed to src/lib/gl_format_color.js

Lines changed: 1 addition & 1 deletion
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 tinycolor = require('tinycolor2');
55
var isNumeric = require('fast-isnumeric');
66
var str2RgbaArray = require('./str2rgbarray');
File renamed without changes.

src/lib/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ lib.stripTrailingSlash = function (str) {
11561156
return str;
11571157
};
11581158

1159-
var colorscaleNames = Object.keys(require('../colorscale').scales);
1159+
var colorscaleNames = Object.keys(require('../components/colorscale/scales'));
11601160

11611161
lib.valObjects = {
11621162
data_array: {

src/gl3d/lib/show_no_webgl_msg.js renamed to src/lib/show_no_webgl_msg.js

Lines changed: 1 addition & 1 deletion
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

55
/**
66
* Prints a no webgl error message into the scene container

src/gl3d/lib/str2rgbarray.js renamed to src/lib/str2rgbarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
var tinycolor = require('tinycolor2'),
4-
arrtools = require('arraytools');
3+
var tinycolor = require('tinycolor2');
4+
var arrtools = require('arraytools');
55

66
function str2RgbaArray(color) {
77
color = tinycolor(color);

src/geo/lib/topojson-utils.js renamed to src/lib/topojson_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var topojsonUtils = module.exports = {};
44

5-
var locationmodeToLayer = require('./params').locationmodeToLayer,
5+
var locationmodeToLayer = require('../constants/geo_constants').locationmodeToLayer,
66
topojsonFeature = require('topojson').feature;
77

88

0 commit comments

Comments
 (0)